--- android/TrainInfoServiceGoogle/src/dk/thoerup/traininfoservice/StationDAO.java 2010/09/23 13:13:09 1114 +++ android/TrainInfoServiceGoogle/src/dk/thoerup/traininfoservice/StationDAO.java 2010/09/23 15:08:39 1115 @@ -90,6 +90,13 @@ } } } + + Collections.sort(stationBean.entries, new Comparator() { + @Override + public int compare(StationEntry arg0, StationEntry arg1) { + return arg0.getName().compareTo( arg1.getName() ); + } + }); return stationBean; } finally { @@ -270,7 +277,8 @@ for(JdoStationBean bean : beanList) { stationBean.entries.add( bean.toStationEntry() ); - } + } + } finally { pm.close();