My bad. I should have looked too. Quick hack is to add a minus sign to the return statement and rebuild.
DocumentComparer.vb
Case DocumentsDisplayColumnInfo.COLUMN_MODIFIEDDATE
If objX.ModifiedDate.CompareTo(objY.ModifiedDate) <> 0 Then
Return -objX.ModifiedDate.CompareTo(objY.ModifiedDate)
End If
The proper way is to add the new sort feature...
DocumentsDisplayColumnInfo.vb
Public Const COLUMN_MODIFIEDDATEDESC As String = "ModifiedDateDesc"
Public Shared AvailableDisplayColumns() As String = New String()
COLUMN_MODIFIEDDATE, _
COLUMN_MODIFIEDDATEDESC, _
Public Shared AvailableSortColumns() As String = New String() _
COLUMN_MODIFIEDDATE, _
COLUMN_MODIFIEDDATEDESC, _
DocumentComparer.vb
Case DocumentsDisplayColumnInfo.COLUMN_MODIFIEDDATE
If objX.ModifiedDate.CompareTo(objY.ModifiedDate) <> 0 Then
Return objX.ModifiedDate.CompareTo(objY.ModifiedDate)
End If
Case DocumentsDisplayColumnInfo.COLUMN_MODIFIEDDATEDESC
If objX.ModifiedDate.CompareTo(objY.ModifiedDate) <> 0 Then
Return -objX.ModifiedDate.CompareTo(objY.ModifiedDate)
End If
Document.ascx.vb
Case DocumentsDisplayColumnInfo.COLUMN_MODIFIEDDATE
AddDocumentColumn("ModifiedDate", "ModifiedDate", "{0:d}")
Case DocumentsDisplayColumnInfo.COLUMN_MODIFIEDDATEDESC
AddDocumentColumn("ModifiedDateDesc", "ModifiedDateDesc", "{0:d}")
Document.acsx.resx
ModifiedDate.Header |
Modified Date |
ModifiedDateDesc.Header
|
Modified Date Desc |
EditDocumentsSettings.ascx.resx
ModifiedDate.Header
|
Modified Date |
ModifiedDateDesc.Header |
Modified Date (newest) |
I hope this is of some help to you. |
|