Hi,
If I request the db directly with ‘select position_id from position order by position_id ASC’ , I get exatly what I want:
CP1456
CP1456/1
CP1457
position_id is a fields.Char
but impossible to get this order in the sao client, I get this:
CP1456
CP1457
CP1456/1
even if I define the order_position_id function like that:
@classmethod
def order_position_id(cls, tables):
table, _ = tables[None]
return [Tonumber(Substring(table.position_id,3,4))]
Any idea ?
Tks,
Laurent