Avoid unnecessary calculations when retrieving just regular goals

And also simplify a bit the code.
Order goals by priority and by name

This way we get a prioritized list in the breadcrumbs goal dropdown.