Change sort order from D.D8 to ISO-DMS

svn: r15582
This commit is contained in:
Nick Hall 2010-06-19 23:43:59 +00:00
parent f0e156a112
commit 52d5fbd042

View File

@ -133,10 +133,10 @@ class PlaceBaseModel(object):
return conv_lat_lon(data[4], '0', format='DEG')[0]
def sort_longitude(self, data):
return conv_lat_lon('0', data[3], format='D.D8')[1] if data[3] else u''
return conv_lat_lon('0', data[3], format='ISO-DMS') if data[3] else u''
def sort_latitude(self, data):
return conv_lat_lon(data[4], '0', format='D.D8')[0] if data[4] else u''
return conv_lat_lon(data[4], '0', format='ISO-DMS') if data[4] else u''
def column_id(self, data):
return unicode(data[1])