corrected errors in students sort operations