Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:Iterator
(view source)
Revision as of 11:45, 8 October 2017
30 bytes removed
,
6 years ago
m
no edit summary
Line 41:
Line 41:
local sortKey = stringKey('sort', context, n)
local sortKey = stringKey('sort', context, n)
if sortKey then
if sortKey then
−
table.sort(collection, function(a, b) return
a[sortKey] and b[sortKey] and
a[sortKey] < b[sortKey] end)
+
table.sort(collection, function(a, b) return a[sortKey] < b[sortKey] end)
end
end
local i = 1
local i = 1
がか
cssedit, gkautomate
7,060
edits