Created
February 10, 2015 19:31
-
-
Save adamlwalker/737e6f66f1de5d06b5a4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def sort_packs(tests) | |
| tests.map!{|t| t['Test Package']} | |
| tests.sort!{|t1,t2| t1.id <=> t2.id} | |
| '' | |
| end | |
| def custom_sort(tests) | |
| tests.sort!{|t1,t2| t1['RUN'].id <=> t2['RUN'].id} | |
| '' | |
| end | |
| def custom_sort(results) | |
| results.sort!{|r1,r2| r1.id <=> r2.id} | |
| '' | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment