read result sorting fix