<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://linguifex.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3Atable%2FkeysToList</id>
	<title>Module:table/keysToList - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://linguifex.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3Atable%2FkeysToList"/>
	<link rel="alternate" type="text/html" href="https://linguifex.com/w/index.php?title=Module:table/keysToList&amp;action=history"/>
	<updated>2026-04-15T16:20:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://linguifex.com/w/index.php?title=Module:table/keysToList&amp;diff=474929&amp;oldid=prev</id>
		<title>Sware: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://linguifex.com/w/index.php?title=Module:table/keysToList&amp;diff=474929&amp;oldid=prev"/>
		<updated>2025-11-04T17:47:20Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:47, 4 November 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Sware</name></author>
	</entry>
	<entry>
		<id>https://linguifex.com/w/index.php?title=Module:table/keysToList&amp;diff=474928&amp;oldid=prev</id>
		<title>wikt&gt;Theknightwho at 02:22, 7 May 2025</title>
		<link rel="alternate" type="text/html" href="https://linguifex.com/w/index.php?title=Module:table/keysToList&amp;diff=474928&amp;oldid=prev"/>
		<updated>2025-05-07T02:22:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local compare_module = &amp;quot;Module:compare&amp;quot;&lt;br /&gt;
&lt;br /&gt;
local pairs = pairs&lt;br /&gt;
local sort = table.sort&lt;br /&gt;
&lt;br /&gt;
local compare&lt;br /&gt;
local function get_compare()&lt;br /&gt;
	compare, get_compare = require(compare_module), nil&lt;br /&gt;
	return compare&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--[==[&lt;br /&gt;
Returns a list of the keys in a table, sorted using either the default `table.sort` function or a custom `key_sort` function.&lt;br /&gt;
&lt;br /&gt;
If there are only numerical keys, [[Module:table/numKeys]] is probably faster.]==]&lt;br /&gt;
return function(t, key_sort)&lt;br /&gt;
	local list, i = {}, 0&lt;br /&gt;
	for key in pairs(t) do&lt;br /&gt;
		i = i + 1&lt;br /&gt;
		list[i] = key&lt;br /&gt;
	end&lt;br /&gt;
	-- Use specified sort function, or otherwise `compare`.&lt;br /&gt;
	sort(list, key_sort == nil and (compare or get_compare()) or key_sort)&lt;br /&gt;
	return list&lt;br /&gt;
end&lt;/div&gt;</summary>
		<author><name>wikt&gt;Theknightwho</name></author>
	</entry>
</feed>