diff options
author | 2016-07-07 10:26:58 +0300 | |
---|---|---|
committer | 2016-07-07 10:26:58 +0300 | |
commit | 058c77d435985cf177efd094816d01cf887d46f2 (patch) | |
tree | f76e90aaac73fca2a1b415e696424af67cea3798 /src/main/java/com/juick/http/www | |
parent | c4f9f29274ab9700272ba1064d05ccf7eefe91e2 (diff) |
fix pm sorting
Diffstat (limited to 'src/main/java/com/juick/http/www')
-rw-r--r-- | src/main/java/com/juick/http/www/PM.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/com/juick/http/www/PM.java b/src/main/java/com/juick/http/www/PM.java index b351eb0e..932d1baf 100644 --- a/src/main/java/com/juick/http/www/PM.java +++ b/src/main/java/com/juick/http/www/PM.java @@ -63,8 +63,7 @@ public class PM { if (!msgs.isEmpty()) { out.println("<ul>"); - for (int i = msgs.size() - 1; i >= 0; i--) { - com.juick.Message msg = msgs.get(i); + for (com.juick.Message msg : msgs) { String txt = PageTemplates.formatMessage(msg.getText()); @@ -137,8 +136,7 @@ public class PM { if (!msgs.isEmpty()) { out.println("<ul>"); - for (int i = msgs.size() - 1; i >= 0; i--) { - com.juick.Message msg = msgs.get(i); + for (com.juick.Message msg : msgs) { String txt = PageTemplates.formatMessage(msg.getText()); |