diff options
-rw-r--r-- | lib/plist/generator.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/plist/generator.rb b/lib/plist/generator.rb index 9c88928..90bfc8d 100644 --- a/lib/plist/generator.rb +++ b/lib/plist/generator.rb @@ -201,6 +201,13 @@ module Plist end end +# we need to add this so sorting hash keys works properly +class Symbol #:nodoc: + def <=> (other) + self.to_s <=> other.to_s + end +end + class Array #:nodoc: include Plist::Emit end |