Use stable sort to ensure we don't randomly reorder items
When you searched for CMakeLists.txt by typing each char one
after another, the result list "flickered" due to the random
order for items with the same relevance. Instead, use stable_sort
to prevent this flickering.