&sortConfig=`[{"sortby":"photo_number","sortdir":"ASC","sortmode":"numeric"}]`
1 100-107 108 109-110 111 112-114 115 116-120 13-18 19-22 2-4 23-24 25-26 27-29 30 31-32
1 2-4 13-18 19-22 23-24 25-26 27-29 30 31-32 100-107 108 109-110 111 112-114 115 116-120
This question has been answered by Bruno17. See the first response.
&sortConfig=`[{"sortby":"CAST(photo_number AS SIGNED)"}]`try
&sortConfig=`[{"sortby":"CAST(photo_number AS SIGNED)"}]`
&sortConfig=`[{"sortby":"photo_number","sortdir":"ASC","sortmode":"numeric"}]`
1-6
10-14
105-119
120-121
15-22
23-32
33-39
40-43
44-54
55-73
7-9
74-78
79-83
84-88
89-91
92-97
98-104
&sortConfig=`[{"sortby":"CAST(photo_number AS SIGNED)"}]`
23-32
105-119
10-14
44-54
15-22
1-6
92-97
55-73
74-78
89-91
7-9
33-39
20-121
40-43
79-83
98-104
84-88
&sortConfig=`[{"sortby":"CAST(SUBSTRING_INDEX(name, '-', 1) AS SIGNED)"},{"sortby":"CAST(SUBSTRING_INDEX(name, '-', -1) AS SIGNED)"}]`