setup sorting for responses