made sorting compare the score and if equal the doc id, using StoreValue doesn't work as it isn't populated when sorting is done