copied sorting function over from gantt helper to work with redmine 2.3
version bump