a javascript-class that can sort numbers, strings and objects.