Loading...
 
Skip to main content

Add natural sorting of Priority field in the bug tracker at dev.t.o

Status
Open
Subject
Add natural sorting of Priority field in the bug tracker at dev.t.o
Version
19.x
20.x
Category
  • Error
  • Usability
  • Community projects
  • Dogfood on a *.tiki.org site
  • Less than 30-minutes fix
Feature
Advanced Rating Language / Mathematical calculation tracker field
Trackers
Resolution status
New
Submitted by
Xavier de Pedro
Lastmod by
Xavier de Pedro
Rating
(0)
Related-to
Description

We need to provide natural sorting of the Priority field in the bug tracker at dev.t.o
Example: click at sort bugs in the wishlist page by Priority in descending order:
https://dev.tiki.org/tiki-index.php?session_filters=y&tr_sort_mode1=f_138_desc&page=Wishlist

First, items with priority 90 are shown.

After that, items with priority 9 are shown. However, between 9 and 90 there are lots of priorities that should be shown before 9 is shown, if they were understood as numbers, not as characters.

See:
https://www.php.net/manual/en/function.natsort.php

Importance
5
Easy to solve?
8
Priority
40
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7066
Created
Thursday 18 April, 2019 17:07:04 UTC
by Xavier de Pedro
LastModif
Thursday 18 April, 2019 17:08:10 UTC


Show PHP error messages