Google interview question

Develop an algorithm to sort prime numbers