Fix up and simplify hasAnyAccess()
pos modules sorting