Browse files

make sort order stable on reload, fixes issue #3

  • Loading branch information...
1 parent 7eb3ab1 commit 50acf92a993b2b675eb8d64419e2f11bbf1e809a @danielnaber committed Oct 14, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 grails-app/views/association/list.gsp
View
3 grails-app/views/association/list.gsp
@@ -23,7 +23,8 @@
<g:each in="${synsets}" var="synset">
<li style="margin-bottom: 1px"><g:link controller="synset" action="edit" id="${synset.id}">${synset.toShortStringWithShortLevel(5, true)}</g:link>
<ul style="margin-bottom: 12px;margin-top: 1px">
- <g:each in="${synset.synsetLinks}" var="synsetLink">
+ <g:set var="synsetLinks" value="${new ArrayList(synset.synsetLinks).sort()}"/>
+ <g:each in="${synsetLinks}" var="synsetLink">
<g:if test="${synsetLink.linkType == desiredLinkType}">
<li style="margin-top: 1px">${synsetLink.targetSynset.toShortStringWithShortLevel(5, true)}</li>
</g:if>

0 comments on commit 50acf92

Please sign in to comment.