Add `sort` functionality to the adapter