asc sorting and caching retrieved data