sort for plans and badge