How to sort & filter a complementary field

Hi
We created 2 new extra fields in dolibarr/societe/admin/societe_extrafields.php.
Both are result of computed piece of PHP filled in the field “computed field”. One is formatted as a “Price” and the other one an “Integer”.
Computation works fine on both fields BUT the in the result view where those 2 fields are shown, I don’t have the capability to sort by or filter by those fields.
How may I make my new extra fields sortable and filterable (I can see any option in the creation screen)?

thanks in advance

If you know php coding and can modify then look for answers in …/societe/list.php

Thank you Nazeer for your answer.
Actually we used to tweak the whole list.php. We used to create our fields there and then, their filter and sort capabilities.
We decided to dig more into the extrafields solution in order to better maintain our extra fields along the new releases of doibarr.
Therefore, getting back to modify the php file is not an option for us.

I wonder why some of our extra fields can be sorted and filtered while some others cannot.

Bests

hello,how do you do for computed field