MDL-33635 improve collatorlib
commit212826853b6e15f9ac839182e8cd81dc8f9cd87a
authorPetr Skoda <commits@skodak.org>
Sun, 10 Jun 2012 14:28:31 +0000 (10 16:28 +0200)
committerPetr Skoda <commits@skodak.org>
Tue, 12 Jun 2012 08:57:24 +0000 (12 10:57 +0200)
tree859dc0fd12ee4d03144e2f504032ed9fc07d6fad
parentf8dfdb524b3d6800cb29827491329f4f50f29154
MDL-33635 improve collatorlib

1/ the sort flag can not use Intl extension constants because they may not be available
2/ add sort flag to all methods
3/ use private constructor instead of abstract - more Java like API to match the textlib
4/ add natural sorting support
5/ consistent bool return type
6/ better non-intl fallback
7/ more tests
lib/tests/textlib_test.php
lib/textlib.class.php