This is to test the sorting mechanism