numerical sort numbers and support being used as commonjs module