Hi, Is it possible to add a custom comparator to a field for sorting. e.g. let's say I have field 'name' and following documents
{
id : "doc1",
name : "1"
}
{
id : "doc2",
name : "S1"
}
{
id : "doc2",
name : "S2"
}
if I sort using field 'name', the order would be : ["doc1", "doc2", "doc3"]
but I want pure numbers to last and want the order ["doc2", "doc3",
"doc1"]. Is there a way I can provide my own comparator?
