d58d9f9b-ef6b-4190-91db-1f7ac22552dd 1.0 2014 // Create a list of the counters objects. counters = NewObjectList() list add(counters, northcounter) list add(counters, southcounter) list add(counters, westcounter) list add(counters, eastcounter) // Sort the list sortedcounters = ObjectListSortDescending(counters, "value") msg("Sorted counters list: " + sortedcounters) // Grab the highest counters switch (sortedcounters[0]) { case (northcounter) { msg("The north direction was the most.") } case (southcounter) { msg("The south direction was the most.") } case (westcounter) { msg("The west directxion was the most.") } case (eastcounter) { msg("The east direction was the most.") } } 0 10 5 3