sorting fix complete