Hi Sacha, I guess only with php array walk. MySQL can not sort this way. grtx Andreas Sacha Vorbeck schrieb: > MySQL sorts the result with UID asc: > 34,88,3764 > > But I need the uids in the original order: > 3764,34,88 > > Any ideas on how I can achieve this? >