I want to prepare custom query for getting sorted list of objectes from repository. I would like to have only one query, where I put only name of column as argument. What should I add after "Order by"?
@Query("FROM NoteEntity n where n.user.id = ?2 ORDER BY :columnName ASC")
List<NoteEntity> getNotesSortedByColumn(String columnName, String userID);
Following query return list of objects but without any sorting.