Compare to funktion

Quickly added compare to funktion in work, needed for possible list
sorting.