fixed Ord instance