taken from field
The sort policy specifies how sorting in this TableView should be performed.
For example, a basic sort policy may just call
FXCollections.sort(tableView.getItems())
, whereas a more advanced
sort policy may call to a database to perform the necessary sorting on the
server-side.
TableView ships with a default
that does precisely as mentioned above: it simply attempts
to sort the items list in-place.
It is recommended that rather than override the sort
method that a different sort policy be provided instead.
Diagram: TableView