OpenText interview question

how sorting works in collections