Globant Interview Question

How do you sort data coming in from a database?