Ingenico interview question

Create a pseudo algorithm based on some sorting requirement