Globant interview question

How do you sort data coming in from a database?