fixed project and category sorting