Data Table sorting on calculated columns

How do I sort on a field that is calculated from other values. Please see

https://snippet.webix.com/xrtgq70i

I cannot sort on the last column as that is calculated from two different fields.

Hello,
You can try:

  1. template + sort:"text"
    https://snippet.webix.com/zjwnwu33

  2. scheme + sort:"int"

scheme:{
        	$init:function(obj){
            	 obj.votes_per_year = obj.votes/obj.year;
            }
        },

https://snippet.webix.com/8a9ohbqg