Sorting rim shards