error message for nonimplemented sort function

Signed-off-by: Alexander Skjolden <alex@plastboks.net>
added integer compare for sort function

Signed-off-by: Alexander Skjolden <alex@plastboks.net>