Fixed sorting to work with hr locale