You are here: Foswiki>Tasks Web>Item1645 (28 Aug 2010, AndreUlrich)Edit Attach

Item1645: Enable alphabetical sort for DBCachePlugin

pencil
Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
Applies To: Extension
Component: DBCachePlugin
Branches:
Reported By: AndreUlrich
Waiting For: Main.MichaelDaum
Last Change By: AndreUlrich
It would be useful to sort in alphabetic order, otherwise lowercase characters will follow uppercase in search results like:

  • ATest
  • BTest
  • CTest
  • atest
  • ...

I don´t know if it makes sense to create just another parameter for that or if we could extend the existing one like sort="lc(name)"?

Alphabetic sorting in DBCachePlugin can be enabled buy lowercase the input like this:

DBCachePlugin/WebDB.pm (349)
sort { lc($sorting{$a}) cmp lc($sorting{$b}) } @topicNames;

-- AndreUlrich - 20 May 2009

Hm, standard SEARCH doesn't lowercase either. Well, sorting with a sort="lc(name)" would actually sort according to lowercase'd topic names ... which are always starting with an upper case letter.

-- MichaelDaum - 02 Jul 2009

Hm, Michael answered that my initial idea should work like requested. Think this can be closed then.

-- AndreUlrich - 28 Aug 2010

ItemTemplate edit

Summary Enable alphabetical sort for DBCachePlugin
ReportedBy AndreUlrich
Codebase trunk
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Extension
Component DBCachePlugin
Priority Normal
CurrentState Closed
WaitingFor MichaelDaum
Checkins
TargetRelease n/a
ReleasedIn
Topic revision: r3 - 28 Aug 2010, AndreUlrich
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy