fix sorting for Sprint 2 - Story 1