select route_id, coalesce(title,'')||' ('||coalesce(table_name,'')|| case when not enabled then ', відключений' else '' end ||')' as text from admin.routes 
where 1=1 order by not enabled, title