Closed (fixed)
Project:
DataTables
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Mar 2012 at 02:37 UTC
Updated:
16 Apr 2018 at 16:46 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
gnal commentedConfirming this one for datatables 7.x-1.1. Setting a column to default sort desceding does not change the view's default sorting. Tried it for both numerical and string type columns.
Comment #2
gnal commentedComment #3
gnal commentedComment #4
gnal commentedSubmitting a patch that seems to fix it. Just changing the $options key that contains the default sort value.
Comment #5
sanchiz commentedIt fixed sorting for me. Looks RTBC.
Comment #6
formatC'vt commentedI can't apply this patch for 7.x-1.x-dev, patch is outdated
upload new one.
Comment #7
ey commentedUpdating the issue status.
Comment #8
ey commentedOh sorry, selected wrong status, it's RTBC :)
Comment #10
ey commentedComment #13
Donit commentedI've tested the current stable and dev version for D7. Default Sort Descending still doesn't work.
Comment #14
konordo commentedDatatable counts all the fields in the view in order to determine the position of the sort column, howerver we need to skip the fields that exist in the view but have the Exclude from display checkbox enabled: