Writing custom comparator for sort in kibana just like in Java

Hi,

I'm newbie to Kibana and i want to write custom comparator for sorting in Kibana.

Given 2 records, I want to run some logic and say which is greater and smaller.

I have a field which has vector values and i want to use them while comparing 2 records.

is it possible in Kibana?

Thanks for your time.