stable_sort

in _plugins/plugins.rb [68:80]


    def stable_sort(input, property = nil)
      ary = [input].flatten
      ary.stable_sort do |a, b|
        a = a[property]
        b = b[property]
        if a && b
          a <=> b
        else
          a == b ? 0 : a ? -1 : 1
        end
      end
    end