I have created an article on Codementor.io about SQL-like sorting of Java 8 streams based on object properties and added some notes on my solution where I used comparison based on LocalDateTime.
You can find the article here: https://www.codementor.io/ghajba/sortring-a-java-8-stream-and-notes-on-time-based-comparison-54b30uy6n
Happy reading! and do not forget to give a start to my article at Codementor! 😉