@Override
	public List<TravelLog> sortRating() {
		
		List<Journal> j = db.getAllJournals();
		List<TravelLog> toReturn = new ArrayList<TravelLog>();
		for(Journal journal : j)
		{
			List<TravelLog> tmp = journal.sort("Rating");
			if(toReturn.size() == 0)
				toReturn.addAll(tmp);
			else
			{
				for(TravelLog t : tmp)
				{
					int i = 0;
					while(i< toReturn.size() && t.getRating() < toReturn.get(i).getRating())
						i++;
					toReturn.add(i, t);
				}
			}
		}
		return toReturn;
	}