I think you could create a field with the given calculation and then use it as a field to sort your values in the table.
Hope this helps
Hi Ka Chun,
It's not possible to sort by Table Calculations. This is mainly because table calculations are highly dependent on what is in the view, and at any time the view can change or the way that the Table Calc is computed can cause the values to change, thus giving a different output for the sort.
You'll probably just want to sort by the Countd(Stores_ID) in this case.
Hope this helps!