sort reworked