Fixed active sorting with caching