extension with sorting