Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions table/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from uuid import uuid4
from django.db.models.query import QuerySet
from django.utils.safestring import mark_safe
from django.utils.datastructures import SortedDict
from collections import OrderedDict
from .columns import Column, BoundColumn, SequenceColumn
from .widgets import SearchBox, InfoLabel, Pagination, LengthMenu, ExtButton

Expand All @@ -28,7 +28,7 @@ def rows(self):
# Binding object to each column of each row, so that
# data structure for each row is organized like this:
# { boundcol0: td, boundcol1: td, boundcol2: td }
row = SortedDict()
row = OrderedDict()
columns = [BoundColumn(obj, col) for col in self.columns if col.space]
for col in columns:
row[col] = col.html
Expand Down