try:select c.* from(select a.* from tablea a where a.title ='123'
union all
select b.* from tablea b where b.title ='123') c
order by c.'date'