Hello! I was wondering if it is possible to sort b...
# community-help
d
Hello! I was wondering if it is possible to sort by lowest over multiple fields? eg.
Copy code
{
    name: a
    size_1_price: 380
    size_2_price: 90
    size_3_price: 17
},
{
    name: b
    size_1_price: 400
    size_2_price: 250
    size_3_price: 3
},
{
    name: c
    size_1_price: 10
    size_2_price: 950
    size_3_price: 1
}

sort by min(size_1_price, size_2_price) => c, a, b
sort by min(size_1_price, size_2_price, size_3_price) => c, b, a
if not is there any sort of document structure that would enable something similar?