Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

docu and api

  • Loading branch information...
commit 8ec0ed56f44956ccd875098ddd5f867b1814274a 1 parent 216ed3e
reiz authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.markdown
4 README.markdown
@@ -19,21 +19,25 @@ Because the default sort method does not recognize the numbers in the string. Th
This GEM has 8 methods
`Naturalsorter::Sorter.sort(array, caseinsesitive)`
`Naturalsorter::Sorter.sort_desc(array, caseinsesitive)`
And this here for more advanced sorting. Where you can put in a array of objects and the method which should called on every object for comparison.
`Naturalsorter::Sorter.sort_by_method(array, method, caseinsesitive)`
`Naturalsorter::Sorter.sort_by_method_desc(array, method, caseinsesitive)`
This methods are based on a different algo. spezially optimizied for sorting version strings.
This here is again for an array with objects.
`Naturalsorter::Sorter.sort_version_by_method(array, method)`
Get newest.

0 comments on commit 8ec0ed5

Please sign in to comment.
Something went wrong with that request. Please try again.