lib/vedeu/models/interfaces.rb in vedeu-0.5.6 vs lib/vedeu/models/interfaces.rb in vedeu-0.5.7

- old
+ new

@@ -19,10 +19,10 @@ # Vedeu.interfaces.zindexed # # @return [Array<Vedeu::Interface>] # @see Vedeu::DSL::Interface#zindex def zindexed - all.sort { |a, b| a.zindex <=> b.zindex } + all.sort_by(&:zindex) end end # Interfaces class Interface