fixed sorting by name/hours