creating a sorting example