Add an Ord instance to Text
Fix conditional compilation bounds