case insensitive SortFilterModel sorting undocumented

Bug #1391034 reported by Victor Thompson
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Fix Released
Medium
Cris Dywan
Vivid
New
Undecided
Unassigned
ubuntu-ui-toolkit (Ubuntu RTM)
New
Undecided
Unassigned

Bug Description

In the model provided by SortFilterModel the sorting is handled such that lower case letters are after any and all items that start with an upper case letter. This produces ordering such as the following when sorting by Qt.AscendingOrder:

Awesome
Cool
Excellent
Wonderful
abysmal
bad
wrong

It would ideal if the result was a case insensitive ordering.

Related branches

Revision history for this message
Victor Thompson (vthompson) wrote :

A similar bug (lp:1391018) has been filed against the mediascanner2 component. The music app was going to use the SortFilterModel to work around the mediascanner2 issue (and another issue related to sorting), but that is not possible given the current ordering of sorted items in SortFilterModel.

description: updated
Revision history for this message
Tim Peeters (tpeeters) wrote :

Can we add an option to SortFilterModel to make the sorting case insensitive?

Changed in ubuntu-ui-toolkit:
assignee: nobody → Christian Dywan (kalikiana)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Cris Dywan (kalikiana) wrote :

sortCaseSensitivity: Qt.CaseInsensitive should do what you want?

Changed in ubuntu-ui-toolkit:
status: Confirmed → Incomplete
Revision history for this message
Victor Thompson (vthompson) wrote :

@Christian, that worked great! It'd be nice to have that as the default and to also have it in the API [1]

[1] http://developer.ubuntu.com/api/qml/sdk-14.10/Ubuntu.Components.SortFilterModel/

Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: nobody → Christian Dywan (kalikiana)
importance: Undecided → Medium
status: New → Incomplete
Zoltan Balogh (bzoltan)
no longer affects: ubuntu-ui-toolkit
Revision history for this message
Cris Dywan (kalikiana) wrote :

I'm not sure that it should be the default. Though mentioning it in the docs seems like a good idea.

Changed in ubuntu-ui-toolkit (Ubuntu):
status: Incomplete → Confirmed
summary: - SortFilterModel sorting is A-Z followed by a-z so it is not case
- insensitive
+ case insensitive SortFilterModel sorting undocumented
Cris Dywan (kalikiana)
Changed in ubuntu-ui-toolkit (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-ui-toolkit - 1.1.1364+15.04.20141209-0ubuntu1

---------------
ubuntu-ui-toolkit (1.1.1364+15.04.20141209-0ubuntu1) vivid; urgency=medium

  [ Zsombor Egri ]
  * Theming fixes: application theming, binding loop fix, auto-theming
    moved into MainView and it is applicable only on Ambiance and
    SuruDark, SuruGradient is no longer auto-themed.
    Fixes: LP: #1213043, LP: #1277647, LP: #1330510, LP: #1356779,
           LP: #1389792.
  * ServiceProperties component to Ubuntu.Components 1.1.
    Fixes: LP: #1391877.
  * New ListItem component base. Support for leading/trailing actions.
    Exported in Ubuntu.Components 1.2 UNSTABLE release.
    Fixes: LP: #1097728, LP: #1372592, LP: #1383870.
  * removing failing ServiceProperties and app-theming branches
  * Application theming ant other theming related binding loop fixes
  * ServiceProperties DBus property watcher

  [ Christian Dywan ]
  * Do the default theme check properly: for non-debug and without
    build errors.
  * Don't activate the control in ListItem.Standard implicitly.
    Fixes: LP: #1372563.
  * Improve AutoPilot caret dragging test cases.
  * Use new qt_gl_set_global_share_context setter with Qt 5.4.
    Fixes: LP: #1397979.
  * Add sortCaseSensitivity to the SortFilterModel example.
    Fixes: LP: #1391034.
  * Change offending links into bold font. Fixes: LP: #1395011.

  [ Daniel d'Andrada ]
  * This is needed by unity8 for the "shell rotation" feature (ie
    shell does all the rotation work instead of apps rotating
    themselves). unity8's dialogs (like the power dialog when you
    long press the power button) should follow its parent item
    rotation and size, as one would expect, and not be sneakily
    reparented to the scene root item, in which case the shell
    UI would be rotated but its dialog would not.
    Related bug LP: #1394511. Fixes: LP: #1394511.

  [ Tim Peeters ]
  * Remove the old header separator style. Fixes: LP: #1372590.

  [ Loïc Molinari ]
  * Made the UCAlarmPrivate destructor private.

  [ Ubuntu daily release ]
  * New rebuild forced
 -- Ubuntu daily release <email address hidden> Tue, 09 Dec 2014 11:47:33 +0000

Changed in ubuntu-ui-toolkit (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.