when computing sort values, only strip non-word characters from the beginning of the value if the result is not an empty string
This commit is contained in:
parent
23bd717a8a
commit
4ef16ef92d
1 changed files with 1 additions and 1 deletions
|
@ -598,7 +598,7 @@ Ox.range = function() {
|
||||||
var getSortValue = Ox.cache(function getSortValue(value) {
|
var getSortValue = Ox.cache(function getSortValue(value) {
|
||||||
var sortValue = value;
|
var sortValue = value;
|
||||||
function trim(value) {
|
function trim(value) {
|
||||||
return value.replace(/^\W+/, '');
|
return value.replace(/^\W+(?=\w)/, '');
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
Ox.isEmpty(value)
|
Ox.isEmpty(value)
|
||||||
|
|
Loading…
Reference in a new issue