Page 1 of 1

How to fix default documents list order in tab ?

PostPosted:Fri Nov 13, 2015 5:10 am
by kknd
See my problem, the openkm dont show correct file list in order

01
02
03
04
05
06
07
08
09
100
101
102
103
104
105
106
10
11
12
13

Re: How to fix default documents list order in tab ?

PostPosted:Sat Nov 14, 2015 9:37 am
by jllort
Really documents are ordered by text correctly 0X always come before 1X the problem is that you have not normalized the number with a fix number of digits, the way to solve this kind of problems ( at least one way ) is to work always with a fixed number of digits, for example 5, and then 01->00001 100->00100 etc... and in this scenario the ordering will going right.

The other solution is change source code to implement other logic for ordering ( I you case I think the more easy is normalize the number unifying the format ).