I do not know if there is a default implementation for this but you can always just create your own TableModel and implement the sorting functionality inside.