<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://nexus-wiki.org/index.php?action=history&amp;feed=atom&amp;title=Dev%3ASorting</id>
	<title>Dev:Sorting - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://nexus-wiki.org/index.php?action=history&amp;feed=atom&amp;title=Dev%3ASorting"/>
	<link rel="alternate" type="text/html" href="https://nexus-wiki.org/index.php?title=Dev:Sorting&amp;action=history"/>
	<updated>2026-04-24T16:43:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://nexus-wiki.org/index.php?title=Dev:Sorting&amp;diff=141&amp;oldid=prev</id>
		<title>Nexus wiki: Nexus wiki moved page Sorting to Dev:Sorting without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://nexus-wiki.org/index.php?title=Dev:Sorting&amp;diff=141&amp;oldid=prev"/>
		<updated>2024-10-06T18:22:44Z</updated>

		<summary type="html">&lt;p&gt;Nexus wiki moved page &lt;a href=&quot;/index.php?title=Sorting&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Sorting (page does not exist)&quot;&gt;Sorting&lt;/a&gt; to &lt;a href=&quot;/index.php/Dev:Sorting&quot; title=&quot;Dev:Sorting&quot;&gt;Dev:Sorting&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:22, 6 October 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&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;!-- diff cache key nexus_wiki:diff:1.41:old-59:rev-141 --&gt;
&lt;/table&gt;</summary>
		<author><name>Nexus wiki</name></author>
	</entry>
	<entry>
		<id>https://nexus-wiki.org/index.php?title=Dev:Sorting&amp;diff=59&amp;oldid=prev</id>
		<title>Nexus wiki: Created page with &quot;All commands that generate a list of values supports sorting. Sorting can drill down to specific parts of the JSON hierarchy to provide advanced sorting and paging abilities. All sorting happens as the data-set is built, allowing sorting on just about any part of the JSON object.  == Parameters ==  The following parameters can be used to apply sorting to the returned data-set:  === limit ===  The number of records to return. Default: 100.  === page ===  Zero-indexed page...&quot;</title>
		<link rel="alternate" type="text/html" href="https://nexus-wiki.org/index.php?title=Dev:Sorting&amp;diff=59&amp;oldid=prev"/>
		<updated>2024-10-04T05:38:19Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;All commands that generate a list of values supports sorting. Sorting can drill down to specific parts of the JSON hierarchy to provide advanced sorting and paging abilities. All sorting happens as the data-set is built, allowing sorting on just about any part of the JSON object.  == Parameters ==  The following parameters can be used to apply sorting to the returned data-set:  === limit ===  The number of records to return. Default: 100.  === page ===  Zero-indexed page...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;All commands that generate a list of values supports sorting. Sorting can drill down to specific parts of the JSON hierarchy to provide advanced sorting and paging abilities. All sorting happens as the data-set is built, allowing sorting on just about any part of the JSON object.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
The following parameters can be used to apply sorting to the returned data-set:&lt;br /&gt;
&lt;br /&gt;
=== limit ===&lt;br /&gt;
&lt;br /&gt;
The number of records to return. Default: 100.&lt;br /&gt;
&lt;br /&gt;
=== page ===&lt;br /&gt;
&lt;br /&gt;
Zero-indexed page number that depends on limit for page boundaries.&lt;br /&gt;
&lt;br /&gt;
=== offset ===&lt;br /&gt;
&lt;br /&gt;
Alternative to page, offset can be used to page the results by index.&lt;br /&gt;
&lt;br /&gt;
=== order ===&lt;br /&gt;
&lt;br /&gt;
Descending desc or ascending asc as only permitted values.&lt;br /&gt;
&lt;br /&gt;
=== sort ===&lt;br /&gt;
&lt;br /&gt;
The column or field-name to apply the sorting logic to.&lt;br /&gt;
&lt;br /&gt;
=== Alternative input ===&lt;br /&gt;
&lt;br /&gt;
The limit and offset parameters can be given with the following format:&lt;br /&gt;
&lt;br /&gt;
This above will map to the parameters of limit=100 and offset=10.&lt;br /&gt;
&lt;br /&gt;
=== Recursive Sorting ===&lt;br /&gt;
&lt;br /&gt;
This parameter supports moving up levels of JSON keys by using .. This is a recursive function so therfore allows traversing any amount of levels in a JSON hierarchy. Let us take the following JSON object:&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
    &amp;quot;modified&amp;quot;: 1621782289,&lt;br /&gt;
    &amp;quot;json&amp;quot;: {&lt;br /&gt;
        &amp;quot;account&amp;quot;: &amp;quot;8Cdr874GBd8t6MaQ4BVK8fXVVpzVHrGwZpQquUVzUXZroruYdeR&amp;quot;,&lt;br /&gt;
        &amp;quot;date&amp;quot;: &amp;quot;12-21-2020&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
The following parameter would allow sorting through the hierarchy:&lt;br /&gt;
&lt;br /&gt;
 sort=json.date&lt;br /&gt;
&lt;br /&gt;
Using this parameter we would apply a sort to a nested JSON object that would sort it by the date field. The Nexus API supports any number of nested statements. Take the following object:&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
    &amp;quot;txid&amp;quot;: &amp;quot;01c1e74718bbcbc83f46a0e03a86538350779f61df2e385a4456d3926808d3a29e3ac9d8d3ba2ea4b625b52b525d22fb675066184c4552c40824214b4f575e1c&amp;quot;,&lt;br /&gt;
    &amp;quot;type&amp;quot;: &amp;quot;tritium user&amp;quot;,&lt;br /&gt;
    &amp;quot;version&amp;quot;: 3,&lt;br /&gt;
    &amp;quot;sequence&amp;quot;: 3,&lt;br /&gt;
    &amp;quot;timestamp&amp;quot;: 1635813560,&lt;br /&gt;
    &amp;quot;blockhash&amp;quot;: &amp;quot;1341043478e2850c8d3f232e7f4602d609e9cba29e93e9a409ed4ba9e52bca97030426122dc55c2ab88c3da914f38409e5f3248b301950251c2b578e07992b19b192a7b7377a294e3e24c6ff68a6058c425074b3278307574568c6bccbc63c7dfde3d6933b4f1e041c7ddc05953c12988be6bb47f0ca2cd822eb033f4bf6e197&amp;quot;,&lt;br /&gt;
    &amp;quot;confirmations&amp;quot;: 18,&lt;br /&gt;
    &amp;quot;genesis&amp;quot;: &amp;quot;b7918d3942a14bd98ceb0f1be4c8675cc833eda354665167140050eee935b1a2&amp;quot;,&lt;br /&gt;
    &amp;quot;nexthash&amp;quot;: &amp;quot;bafb32b0a09f726d5bd1a23f69bdd605fa53037b0247f1cbb45e3faf6c8f202c&amp;quot;,&lt;br /&gt;
    &amp;quot;prevhash&amp;quot;: &amp;quot;0126a0201d0e0dc27506a2fb90c6deb008c1ec99c6cf401d9397d973151c3c56207d184e059fe3cde9abdb029a77f632c220f28472faa413e4c06ba37c950fb8&amp;quot;,&lt;br /&gt;
    &amp;quot;pubkey&amp;quot;: &amp;quot;0310281593331ce546efb5b275cf77bec88b7f59f2b8e90552cdf2c66fde3d4e5a965ce2e3c501560ff5fe6c9d8db1245071a5c608bc728896ee1fff3b660c5e68&amp;quot;,&lt;br /&gt;
    &amp;quot;signature&amp;quot;: &amp;quot;308184024075ec99396598b601adfcba0a9e9a23ba4dfc68fbe5164a71e4e676e301532338934f4cd7822de687b96168536ed901951debeac6ec40f7aa5d36cb4076ddfef50240518ba3c8dc3a457463919ddc8bd3a62aed82a70f60082bdd36e1e725a58e21895835b70968a38f2b07349e9cc89e6c61807d4aa28bb0a38b9a542a9bfbe456bc&amp;quot;,&lt;br /&gt;
    &amp;quot;contracts&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
            &amp;quot;id&amp;quot;: 0,&lt;br /&gt;
            &amp;quot;OP&amp;quot;: &amp;quot;CREATE&amp;quot;,&lt;br /&gt;
            &amp;quot;address&amp;quot;: &amp;quot;8Ca7nWMah3tes3tmnXkz7H25FLrJ31JoaFxcJUsFhz2PyKMSxaL&amp;quot;,&lt;br /&gt;
            &amp;quot;type&amp;quot;: &amp;quot;OBJECT&amp;quot;,&lt;br /&gt;
            &amp;quot;standard&amp;quot;: &amp;quot;ACCOUNT&amp;quot;,&lt;br /&gt;
            &amp;quot;object&amp;quot;: {&lt;br /&gt;
                &amp;quot;balance&amp;quot;: 0.0,&lt;br /&gt;
                &amp;quot;token&amp;quot;: &amp;quot;0&amp;quot;,&lt;br /&gt;
                &amp;quot;ticker&amp;quot;: &amp;quot;NXS&amp;quot;&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    ]&lt;br /&gt;
 },&lt;br /&gt;
&lt;br /&gt;
This list of transactions (only one shown for convenience) could be sorted by the object&amp;#039;s token when created by using the following parameter:&lt;br /&gt;
&lt;br /&gt;
 sort=contracts.object.token&lt;br /&gt;
&lt;br /&gt;
This command above would move up each level of JSON with each period, resulting in a sort by the contract object&amp;#039;s token value.&lt;/div&gt;</summary>
		<author><name>Nexus wiki</name></author>
	</entry>
</feed>