option to sort results by natural order:
http://php.net/manual/de/function.strnatcmp.php

CommentFileSizeAuthor
#2 sort_natural-1396312-2.patch1.32 KBAnonymous (not verified)
#1 sort_natural-1396312-1.patch1.32 KBAnonymous (not verified)

Comments

Anonymous’s picture

Status: Active » Needs review
StatusFileSize
new1.32 KB
Anonymous’s picture

StatusFileSize
new1.32 KB

fixed whitespace error

cpliakas’s picture

Project: Facet API » Facet API Extra
Version: 7.x-1.0-rc1 » 7.x-1.x-dev
Status: Needs review » Needs work

Hi Shuairan.

Thanks for the contribution! Looks good to me, but Facet API is more or less in a feature freeze so I am bumping this over to Facet API Extra for consideration. Marking as needs work for the nit-picky reason that the array keys in $sorts['natural'] seem to be indented by 4 spaces instead of 2. In addition, since this is going in another module it will have to implement hook_facetapi_sort_info().

Thanks again,
Chris

ygerasimov’s picture

Status: Needs work » Fixed

Committed. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

ChristianWespire’s picture

Issue summary: View changes

This function is also provided by the https://www.drupal.org/project/facetapi_bonus module.