Atlassian interview question

Rate limiting code Sorting a file list grouped by collection and then sort by size