module.exports= {
	views: [{
		"name": "Raw Match Data",
		"view": "matches"
	}],
	
	matches: function (mongoCollection, callback) {
		mongoCollection.find().toArray(function (err, matches) {
			callback([
				{
						name: "Matches",
						headers: [
							{
								text: "Team", 
								value: "team"	
							},
							{
								text: "Comments", 
								value: "comments"	
							},
							{
								text: "Device", 
								value: "sender"	
							}
						],
						data: matches
				}
			]);

			db.close();
		});
	}
};
module.exports= {
	views: [{
		"name": "Raw Match Data",
		"view": "matches"
	}],
	
	matches: function (mongoCollection, callback) {
		mongoCollection
			.find()
			.sort({"_id": -1})
			.toArray(function (err, matches) {
				callback([
					{
							name: "Matches",
							headers: [
								{
									text: "Team", 
									value: "team"	
								},
								{
									text: "Comments", 
									value: "comments"	
								},
								{
									text: "Device", 
									value: "sender"	
								}
							],
							data: matches
					}
				]);

				db.close();
			});
	}
};
Return Raw Match Data in Inverse Order
Return Raw Match Data in Inverse Order
