You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Janne Jalkanen (JIRA)" <ji...@apache.org> on 2009/08/21 09:33:15 UTC
[jira] Commented: (JSPWIKI-480) Attachments not correctly sorted
[ https://issues.apache.org/jira/browse/JSPWIKI-480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12745839#action_12745839 ]
Janne Jalkanen commented on JSPWIKI-480:
----------------------------------------
I think the attachment tables are a bit odd because of
{code}
<td style="white-space:nowrap;" sortvalue="<fmt:formatDate value='<%= att.getLastModified() %>' pattern='EEE, d MMM yyyy hh:mm:ss' />">
{code}
Might be far more efficient to use simply just
{code}
<td style="white-space:nowrap;" sortvalue="<%= att.getLastModified().getTime() %>">
{code}
This would be a lot simpler and faster and still correct.
> Attachments not correctly sorted
> --------------------------------
>
> Key: JSPWIKI-480
> URL: https://issues.apache.org/jira/browse/JSPWIKI-480
> Project: JSPWiki
> Issue Type: Bug
> Affects Versions: 2.8.1, 3.0
> Reporter: Bruno Peeters
> Priority: Minor
> Fix For: 2.8.3
>
> Attachments: attachments-sort.jpg, JSPWIKI-480a.png, JSPWIKI-480b.png
>
>
> The list of attachments for a wiki page can be sorted according to date modified (up & down). In both cases, the timepart of the datetime is not taken into account in the sort.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.