module Sortable::ClassMethods

Public Instance Methods

sort_by_name() click to toggle source
# File lib/podcast_book_club/concerns/sortable.rb, line 8
def sort_by_name
    self.all.sort {|left, right| left.name <=> right.name}
end
sort_by_title() click to toggle source
# File lib/podcast_book_club/concerns/sortable.rb, line 4
def sort_by_title
    self.all.sort {|left, right| left.title <=> right.title}
end