Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add PHPunit test for DefaultCollator | AW-UC | 2015-02-24 | 1 | -9/+95 |
| | | | | | This extends Test_NaturalSort to include a basic test for \OC\NaturalSort_DefaultCollator() | ||||
* | Make root tests extend the \Test\TestCase | Joas Schilling | 2014-11-19 | 1 | -1/+3 |
| | |||||
* | Fixed sort algo for additional cases | Vincent Petry | 2014-08-11 | 1 | -0/+4 |
| | |||||
* | Fixed file list sorting | Vincent Petry | 2014-08-11 | 1 | -0/+178 |
Now using a natural sort algorithm that is more consistent between JS and PHP (although not perfect in some corner cases) - added OC.Util.naturalSortComparator that uses the same algo that was used for the user list - changed user list and files list to use OC.Util.naturalSortComparator - removed toLowerCase() and changed the comparator to use String.localeCompare() - added unit tests - added OC_NaturalSort that is used by OCP\Util::naturalSortCompare() |