Now collections in the DB sorted by name

 * Fix scope issue

Closes-bug: #1379159

Change-Id: I9b9b1763ba5acb87a02f0a8f0905c99033afc4ad