Class: Yalphabetize::OrderCheckers::CapitalizedLastThenAlphabetical

Inherits:
Base
  • Object
show all
Defined in:
lib/yalphabetize/order_checkers/capitalized_last_then_alphabetical.rb

Instance Method Summary collapse

Methods inherited from Base

new_for, #ordered?

Instance Method Details

#compare(string, other_string) ⇒ Object



7
8
9
# File 'lib/yalphabetize/order_checkers/capitalized_last_then_alphabetical.rb', line 7

def compare(string, other_string)
  string.swapcase <=> other_string.swapcase
end