Thymeleaf support for sort init and sort direction

Closes dandelion/issues#25
Closes dandelion/issues#26