Create a pseudo column, which has value 1 when it is a user record and 0, when it is not.
Order the consultation for this (and other columns). With this you can order the records as you want.
Cheers, fernando
G
Grdimitris author6/10/2022
Thank you Fernando I added this pseudo column if(grafeio=:session.synergeio, 1, 0) AS is_mine and i sorted the table with is_mine DESC and works perfect. Thank you again.