-1

次のように、各段落を最初の数字で並べ替える方法を教えてください。

14  Time=110.07s (1541s)  Lock=0.00s (0s)  Rows=0.1 (1), afadil[afadil]@economiste-www.avantis.pl
  SELECT t.word AS realword, i.word FROM search_total t LEFT JOIN search_index i ON t.word = i.word WHERE i.word IS NULL

10  Time=56.60s (566s)  Lock=0.00s (0s)  Rows=14.6 (146), afadil[afadil]@economiste-www.avantis.pl
  SELECT n.nid FROM node n LEFT JOIN search_dataset d ON d.type = 'S' AND d.sid = n.nid WHERE d.sid IS NULL OR d.reindex <> N ORDER BY d.reindex ASC, n.nid ASC LIMIT N, N

1  Time=51.00s (51s)  Lock=0.00s (0s)  Rows=0.0 (0), afadil[afadil]@economiste-www.avantis.pl
  SELECT SUM(i.score * t.count) AS score FROM search_index i INNER JOIN search_total t ON i.word = t.word INNER JOIN node n ON n.nid = i.sid  INNER JOIN search_dataset d ON i.sid = d.sid AND i.type = d.type WHERE n.status = N AND ( n.type NOT IN ('S','S','S','S','S','S','S','S','S','S','S','S','S','S','S','S','S','S','S','S','S','S','S','S') ) AND (i.word = 'S' OR i.word = 'S' OR i.word = 'S' OR i.word = 'S' OR i.word = 'S') AND i.type = 'S' AND (d.data LIKE 'S' AND d.data LIKE 'S' AND d.data LIKE 'S' AND d.data LIKE 'S' AND d.data LIKE 'S' AND d.data LIKE 'S' AND d.data LIKE 'S' AND d.data LIKE 'S' AND d.data LIKE 'S') GROUP BY i.type, i.sid HAVING COUNT(*) >= N ORDER BY score DESC LIMIT N, N

これはmysqlのログなので整理したいのですが、各行は数字で始まります。前もって感謝します。

4

1 に答える 1