Paginated (dynamic loading) datatable with sorted column bug

There seems to be a defect when making one or more columns sortable/sorted on a datatable that is paginated and dynamically loaded from server.
See here: Code Snippet

Is there a workaround for this bug?
Thanks…

@reycri
you need to use sort only as server in case of dynamic loading and do all sorting and filtering on server side.
also in case of dynamic loading scheme->$sort will not work.
if you need to have initial sorted column then you need to implement custom proxy or use own server side logic.