hackweek: fixed sorting