fix sort order, delete cascade resource, remove lens dependency (was unused)