add a <=> comparions for version numbers

Signed-off-by: Mattias Andrée <maandree@operamail.com>
m doc

Signed-off-by: Mattias Andrée <maandree@operamail.com>