How to sort the scripted number fields on search results?

Hi,
We are using Kibana for showing visualizations for the data from ElasticSearch. We have created scripted fields using existing number fields however when we save a search result on dashboard and sort the scripted field, it doesnt sort it. Please advice in this case.

Thanks.

Looks like this is a bug. You can track updates here: https://github.com/elastic/kibana/issues/5676

Thanks Lukas, will track this thread. but is there any work around which can be tried till this fix is applied just for time being?