Compare by name if dates are the same.
This commit is contained in:
		@ -198,7 +198,10 @@ class Photo(object):
 | 
				
			|||||||
		else:
 | 
							else:
 | 
				
			||||||
			return self._attributes["DateTimeFile"]
 | 
								return self._attributes["DateTimeFile"]
 | 
				
			||||||
	def __cmp__(self, other):
 | 
						def __cmp__(self, other):
 | 
				
			||||||
		return cmp(self.date, other.date)
 | 
							date_compare = cmp(self.date, other.date)
 | 
				
			||||||
 | 
							if date_compare == 0:
 | 
				
			||||||
 | 
								return cmp(self.name, other.name)
 | 
				
			||||||
 | 
							return date_compare
 | 
				
			||||||
	@property
 | 
						@property
 | 
				
			||||||
	def attributes(self):
 | 
						def attributes(self):
 | 
				
			||||||
		return self._attributes
 | 
							return self._attributes
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user