lib/datastores/mongodb.js
function (finder) {

    if (mongo_query_options && mongo_query_options.sort) {
      finder.sort(mongo_query_options.sort).toArray(cb);

    } else {
      finder.toArray(cb);
    }

  }
function (finder) {

    if (mongo_query_options && mongo_query_options.sort) {
      finder.sort(mongo_query_options.sort).toArray(cb);

    } else {
      finder.toArray(cb);
    }

  }
function ( finder ) { if ( mongo_query_options && mongo_query_options . sort ) { finder . sort ( mongo_query_options . sort ) . toArray ( cb ) ; } else { finder . toArray ( cb ) ; } }
final sorting and rendering to array
final sorting and rendering to array