Clean trash and sorting in libraries