Fixing parts sorting backwards