lib/jldrill/model/ItemStatus.rb in jldrill-0.5.1.7 vs lib/jldrill/model/ItemStatus.rb in jldrill-0.6.0.1
- old
+ new
@@ -1,5 +1,6 @@
+# encoding: utf-8
module JLDrill
# A container to hold the status of each kind of drill for the item.
class ItemStatus
@@ -38,11 +39,11 @@
return parsed
end
def to_s
retVal = ""
- @statuses.each_value do |status|
- retVal += status.to_s
+ statuses.keys().sort.each do |key|
+ retVal += statuses[key].to_s
end
return retVal
end
end
end