restore sort order to cache items