Support for sorting numbers

Added support for sorting numbers.