Fix tree sorting for Resources and Elements