Added functionality to easily get the sort-order for compares or to add
them to url.