docsearch: Fix results sorting

Signed-off-by: Jerome Flesch <jflesch@gmail.com>