Skip to content

Instantly share code, notes, and snippets.

@adamlwalker
Created February 10, 2015 19:31
Show Gist options
  • Select an option

  • Save adamlwalker/737e6f66f1de5d06b5a4 to your computer and use it in GitHub Desktop.

Select an option

Save adamlwalker/737e6f66f1de5d06b5a4 to your computer and use it in GitHub Desktop.
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