adds sort functionality for helpful