[search] nicer template
[search] fix sort order