solve absolute-sorting