Handle sorting in the adapter.