Fixed a bug with sorting signed integers.