Added sort to adapters