comparator used for jobs
switched to arrays.sort
close reader bug fixed