private static int ZComparison(FNode a, FNode b) { float delta = a.sortZ - b.sortZ; if(delta < 0) return -1; if(delta > 0) return 1; return 0; }