[Bug 548058] Repository sort by priority not correct