Uses quickSort to sort commands based on their compare methods Param: Takes in a array of Sortable interfaces which contains a specific command
(sortables Sortables, i, j int)
| 177 | // Uses quickSort to sort commands based on their compare methods |
| 178 | // Param: Takes in a array of Sortable interfaces which contains a specific command |
| 179 | func Swap(sortables Sortables, i, j int) { sortables[i], sortables[j] = sortables[j], sortables[i] } |
| 180 | |
| 181 | func toPrintable(sortable []whisk.Sortable) []whisk.Printable { |
| 182 | sortedPrintable := make([]whisk.Printable, len(sortable), len(sortable)) |