I don't know about your settings. For me dates don't sort correctly.Zapman wrote: Mon Feb 24, 2025 10:24 am Sorry, I don't understand. It's working fine with a french setting. What happens for you? What do you see?

May be someone else can vouch for it.
Anyway try the following.
Add different dates to the listicongadget , sort it and see. Then tell me if anything is amiss.
Code: Select all
IncludeFile "ColumnSortedListIconGadget.pbi"
Enumeration Window
#Window_0
EndEnumeration
Enumeration Gadgets
#ListIcon_1
#Date_1
#Btn_AddDate
#Btn_Remove
EndEnumeration
Global AppQuit
Procedure AddDates()
Protected dates$
dates$ = GetGadgetText(#Date_1)
AddGadgetItem(#ListIcon_1, -1, dates$)
EndProcedure
Procedure removedates()
RemoveGadgetItem(#ListIcon_1, GetGadgetState(#ListIcon_1))
EndProcedure
Define flgs=#PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_ScreenCentered
If OpenWindow(#Window_0, 0, 0,260,400, "SortDate",flgs)
ListIconGadget(#ListIcon_1, 10, 10, 140, 380, "Date", 120)
;DateGadget(#Date_1, 160, 10, 100, 20, "%yyyy-%mm-%dd", 0);interchange these options.?
;DateGadget(#Date_1, 160, 10, 100, 20, "%yyyy/%mm/%dd", 0);
DateGadget(#Date_1, 160, 10, 100, 20, "%dd-%mm-%yyyy", 0);
;DateGadget(#Date_1, 160, 10, 100, 20, "%dd/%mm/%yyyy", 0)
;DateGadget(#Date_1, 160, 10, 100, 20, "%dd.%mm.%yyyy", 0)
ButtonGadget(#Btn_AddDate, 170, 40, 80, 20, "AddDate")
ButtonGadget(#Btn_Remove, 170, 70, 80, 20, "Remove")
EndIf
ShowListIconSortingArrows(#ListIcon_1)
SortListIcon(#ListIcon_1, 0, #CSLI_Descent)
Repeat
Select WaitWindowEvent()
Case #PB_Event_CloseWindow
AppQuit = #True
Case #PB_Event_Gadget
Select EventGadget()
Case #Btn_AddDate
AddDates()
Case #Btn_Remove
removedates()
EndSelect
EndSelect
Until AppQuit