Sorting List Page by New Field defined in page code

I've got a list page that has code creating a new field.

Is there a way to sort the page based on the new field defined within the code?

I know I can sort the page from page properties using keys defined on the source table but the 'new field' defined within the page code is not on the source table to be used for this method of sorting.

I don't want to add the new field to the source table, hoping for a way to sort the list page by it without doing so.

thanks, 

Related