Ordena por DeviceID, pero... no me toma las fechas correctas, ya que me muestra que mi registro mas reciente fue el 29 de noviembre y el mas antiguo el 1 de enero, siendo que el ultimo fue hoy a las 11 am, por lo que vi ordena de forma descendente los timestamp:
Código MySQL :
('at', 'cdfg37', 1291058551, 61715, -37.4813, -73.34365, 0, 0, 0, 0, '', 0, '', '', '', 0, 0, 0, '', 1291059571, '', '', '', '', '', '', 0, 0, 0, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', '', '', '', ''),
('at', 'bfgd76', 1290819721, 63248, -36.8043, -73.05247, 0, 0, 0, 0, '', 0, '', '', '', 0, 0, 0, '', 1290820070, '', '', '', '', '', '', 0, 0, 18, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', '', '', '', ''),
('at', 'xasf40', 1289248548, 61715, -35.4285, -71.66294, 0, 0, 0, 0, '', 0, 'Av 2 Sur 923-999, Talca, Chile', '', '', 0, 0, 0, '', 1289248555, '', '', '', '', '', '', 0, 0, -272, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', '', '', '', ''),
('at', 'qasd163', 1289227524, 63248, -36.7964, -73.0468, 0, 0, 0, 0, '', 0, 'Abdón Cifuentes 2240, Concepción, Chile', '', '', 0, 570974.13876171, 0, '', 1289227527, '', '', '', '', '', '', 0, 0, 51, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', '', '', '', ''),
('at', 'bge252', 1289227405, 63248, -36.8101, -73.04824, 0, 0, 240, 0, '', 0, 'Av Brasil 1495, Concepción, Chile', '', '', 0, 21619.9643768959, 0, '', 1289227408, '', '', '', '', '', '', 0, 0, 14, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', '', '', '', ''),
('at', 'bgwse58', 1289227404, 61715, -37.8107, -72.7026, 0, 0, 208, 0, '', 0, 'Campo de Marte 612, Angol, Chile', '', '', 0, 4402.59971229185, 0, '', 1289227408, '', '', '', '', '', '', 0, 0, 0, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', '', '', '', ''),
('at', 'ysdf76', 1289227374, 61472, -38.0381, -73.0742, 0, 30, 120, 0, '', 0, 'R-448, Chile', '', '', 0, 84060.7124848036, 0, '', 1289227377, '', '', '', '', '', '', 0, 0, 6, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', '', '', '', ''),
('at', 'bqahe76', 1289227369, 63248, -36.4911, -72.701, 0, 0, 59, 0, '', 0, 'Ruta 126, Chile', '', '', 0, 234713.521227863, 0, '', 1289227373, '', '', '', '', '', '', 0, 0, 56, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', '', '', '', ''),
('at', 'bbsdf', 1289227360, 61472, -36.9682, -72.94719, 0, 63, 296, 0, '', 0, 'Av La Araucana, Chile', '', '', 0, 71060.8993337182, 0, '', 1289227371, '', '', '', '', '', '', 0, 0, -5, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', '', '', '', ''),
('at', 'prsdfa', 1289221419, 61715, -34.5722, -58.49382, 0, 0, 0, 0, '', 0, 'Av Congreso 5452-5500, Ciudad Autónoma de Buenos Aires, Capital Federal, Argentina', '', '', 0, 2249.89909587687, 0, '', 1289227196, '', '', '', '', '', '', 0, 0, -258, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', '', '', '', ''),
('at', 'xsdfsx', 1288901520, 61715, -35.4285, -71.66305, 0, 0, 3, 0, '', 0, 'Av 2 Sur 988, Talca, Chile', '', '', 0, 0, 0, '', 1288901688, '', '', '', '', '', '', 0, 0, -272, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', '', '', '', ''),
('at', 'cfwetr5', 1288879734, 61715, -35.4285, -71.66341, 0, 0, 3, 0, '', 0, 'Av 2 Sur 912, Talca, Chile', '', '', 0, 55132.9480343779, 0, '', 0, '', '', '', '', '', '', 0, 0, -273, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', '', '', '', ''),
('at', 'byqwr', 1286371387, 61715, -34.5722, -58.4937, 0, 0, 0, 0, '', 0, 'Andonaegui 2902-3000 begin_of_the_skype_highlighting 2902-3000 end_of_the_skype_highlighting, Ciudad Autónoma de Buenos Aires, Capital Federal, Argentina', '', '', 0, 0, 0, '', 1290547511, '', '', '', '', '', '', 0, 0, -273, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', '', '', '', '');
Asi quedo con el ejemplo de driverop... pero si se dan cuenta los timestamp, al convertirlos a horario "humano", me marca fechas muy antiguas y no correctas
saludos.. (que problemon...)