SORTBY function

This commit is contained in:
trovier 2023-08-31 15:50:29 +02:00
parent a4b2b85373
commit d20e5f0855
3 changed files with 91 additions and 1 deletions

View File

@ -0,0 +1,28 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/Masters/Features/DocumentEditor.master" %>
<%@ Register Namespace="TeamLab.Controls" Assembly="__Code" TagPrefix="cc" %>
<%@ Register TagPrefix="cc" TagName="LookupReferencesTag" Src="~/Controls/Help/Tags/lookup-reference-functions/lookup-reference-functions.ascx" %>
<script runat="server">
protected override void OnInit(EventArgs e)
{
PageTitle = PageCaption = DocHelpParcing.Title;
MetaKeyWords = "";
MetaDescription = "";
}
</script>
<asp:Content ID="content3" ContentPlaceHolderID="breadstop" runat="server">
<cc:LocalizeContent runat="Server" ControlName="~/Controls/Help/VariousControls/TopControls/SpreadsheetEditorTop/SpreadsheetEditorTop.ascx" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="guidescontent" runat="Server">
<div class="keyword_block">
<ul>
<li><cc:LookupReferencesTag ID="LookupReferences1" runat="server" /></li>
</ul>
</div>
</asp:Content>
<asp:Content ID="content2" ContentPlaceHolderID="leftmenupage" runat="server">
<div class="teamlabeditorspage spreadsheeteditor spreadsheeteditor_ui insertfunction">
</asp:Content>

View File

@ -0,0 +1,62 @@
<!DOCTYPE html>
<html>
<head>
<title>SORTBY Function</title>
<meta charset="utf-8" />
<meta name="description" content="" />
<link type="text/css" rel="stylesheet" href="../../../../../../common/main/resources/help/editor.css" />
<link type="text/css" rel="stylesheet" href="../../images/sprite.css" />
<script type="text/javascript" src="../callback.js"></script>
<script type="text/javascript" src="../search/js/page-search.js"></script>
</head>
<body>
<div class="mainpart">
<div class="search-field">
<input id="search" class="searchBar" placeholder="Search" type="text" onkeypress="doSearch(event)">
</div>
<h1>SORTBY Function</h1>
<p>The <b>SORTBY</b> function is one of the <a href="../UsageInstructions/InsertFunction.htm#lookupreference" onclick="onhyperlinkclick(this)">lookup and reference functions</a>. It is used to sort a range of data or an array based on the values in a corresponding range or array.</p>
<h3>Syntax</h3>
<p><b><em>SORTBY(array, by_array, [sort_order], ...)</em></b></p>
<p>The <b>SORTBY</b> function has the following arguments:</p>
<table style="width: 40%">
<tr>
<th style="background-color: #f4f4f4"><b>Argument</b></th>
<th style="background-color: #f4f4f4"><b>Description</b></th>
</tr>
<tr>
<td><b><em>array</em></b></td>
<td>A range of data to sort.</td>
</tr>
<tr>
<td><b><em>by_array</em></b></td>
<td>An array or range used for sorting.</td>
</tr>
<tr>
<td><b><em>sort_order</em></b></td>
<td>An optional argument. A number determining the sorting order. The possible values are listed in the table below.</td>
</tr>
</table>
<p>The <b><em>sort_order</em></b> argument can be one of the following:</p>
<table style="width: 40%">
<tr>
<th style="background-color: #f4f4f4"><b>Numeric value</b></th>
<th style="background-color: #f4f4f4"><b>Meaning</b></th>
</tr>
<tr>
<td>1 or omitted</td>
<td>Ascending order (by default)</td>
</tr>
<tr>
<td>-1</td>
<td>Descending order</td>
</tr>
</table>
<h3>Notes</h3>
<p><a href="../UsageInstructions/InsertFunction.htm#applyfunction" onclick="onhyperlinkclick(this)">How to apply</a> the <b>SORTBY</b> function.</p>
<h3>Examples</h3>
<p>The figure below displays the result returned by the <b>SORTBY</b> function.</p>
<p><img alt="SORTBY Function" src="../images/sortby.png" /></p>
</div>
</body>
</html>

View File

@ -131,7 +131,7 @@
<tr>
<td>Lookup and Reference Functions</td>
<td>Used to easily find information from the data list.</td>
<td><a href="../Functions/address.htm" onclick="onhyperlinkclick(this)">ADDRESS</a>; <a href="../Functions/choose.htm" onclick="onhyperlinkclick(this)">CHOOSE</a>; <a href="../Functions/choosecols.htm" onclick="onhyperlinkclick(this)">CHOOSECOLS</a>; <a href="../Functions/chooserows.htm" onclick="onhyperlinkclick(this)">CHOOSEROWS</a>; <a href="../Functions/column.htm" onclick="onhyperlinkclick(this)">COLUMN</a>; <a href="../Functions/columns.htm" onclick="onhyperlinkclick(this)">COLUMNS</a>; <a href="../Functions/drop.htm" onclick="onhyperlinkclick(this)">DROP</a>; <a href="../Functions/expand.htm" onclick="onhyperlinkclick(this)">EXPAND</a>; <a href="../Functions/filter.htm" onclick="onhyperlinkclick(this)">FILTER</a>; <a href="../Functions/formulatext.htm" onclick="onhyperlinkclick(this)">FORMULATEXT</a>; <a href="../Functions/hlookup.htm" onclick="onhyperlinkclick(this)">HLOOKUP</a>; <a href="../Functions/hstack.htm" onclick="onhyperlinkclick(this)">HSTACK</a>; <a href="../Functions/hyperlink.htm" onclick="onhyperlinkclick(this)">HYPERLINK</a>; <a href="../Functions/index.htm" onclick="onhyperlinkclick(this)">INDEX</a>; <a href="../Functions/indirect.htm" onclick="onhyperlinkclick(this)">INDIRECT</a>; <a href="../Functions/lookup.htm" onclick="onhyperlinkclick(this)">LOOKUP</a>; <a href="../Functions/match.htm" onclick="onhyperlinkclick(this)">MATCH</a>; <a href="../Functions/offset.htm" onclick="onhyperlinkclick(this)">OFFSET</a>; <a href="../Functions/row.htm" onclick="onhyperlinkclick(this)">ROW</a>; <a href="../Functions/rows.htm" onclick="onhyperlinkclick(this)">ROWS</a>; <a href="../Functions/sort.htm" onclick="onhyperlinkclick(this)">SORT</a>; <a href="../Functions/take.htm" onclick="onhyperlinkclick(this)">TAKE</a>; <a href="../Functions/tocol.htm" onclick="onhyperlinkclick(this)">TOCOL</a>; <a href="../Functions/torow.htm" onclick="onhyperlinkclick(this)">TOROW</a>; <a href="../Functions/transpose.htm" onclick="onhyperlinkclick(this)">TRANSPOSE</a>; <a href="../Functions/unique.htm" onclick="onhyperlinkclick(this)">UNIQUE</a>; <a href="../Functions/vlookup.htm" onclick="onhyperlinkclick(this)">VLOOKUP</a>; <a href="../Functions/vstack.htm" onclick="onhyperlinkclick(this)">VSTACK</a>; <a href="../Functions/wrapcols.htm" onclick="onhyperlinkclick(this)">WRAPCOLS</a>; <a href="../Functions/wraprows.htm" onclick="onhyperlinkclick(this)">WRAPROWS</a>; <a href="../Functions/xlookup.htm" onclick="onhyperlinkclick(this)">XLOOKUP</a>; <a href="../Functions/xmatch.htm" onclick="onhyperlinkclick(this)">XMATCH</a></td>
<td><a href="../Functions/address.htm" onclick="onhyperlinkclick(this)">ADDRESS</a>; <a href="../Functions/choose.htm" onclick="onhyperlinkclick(this)">CHOOSE</a>; <a href="../Functions/choosecols.htm" onclick="onhyperlinkclick(this)">CHOOSECOLS</a>; <a href="../Functions/chooserows.htm" onclick="onhyperlinkclick(this)">CHOOSEROWS</a>; <a href="../Functions/column.htm" onclick="onhyperlinkclick(this)">COLUMN</a>; <a href="../Functions/columns.htm" onclick="onhyperlinkclick(this)">COLUMNS</a>; <a href="../Functions/drop.htm" onclick="onhyperlinkclick(this)">DROP</a>; <a href="../Functions/expand.htm" onclick="onhyperlinkclick(this)">EXPAND</a>; <a href="../Functions/filter.htm" onclick="onhyperlinkclick(this)">FILTER</a>; <a href="../Functions/formulatext.htm" onclick="onhyperlinkclick(this)">FORMULATEXT</a>; <a href="../Functions/hlookup.htm" onclick="onhyperlinkclick(this)">HLOOKUP</a>; <a href="../Functions/hstack.htm" onclick="onhyperlinkclick(this)">HSTACK</a>; <a href="../Functions/hyperlink.htm" onclick="onhyperlinkclick(this)">HYPERLINK</a>; <a href="../Functions/index.htm" onclick="onhyperlinkclick(this)">INDEX</a>; <a href="../Functions/indirect.htm" onclick="onhyperlinkclick(this)">INDIRECT</a>; <a href="../Functions/lookup.htm" onclick="onhyperlinkclick(this)">LOOKUP</a>; <a href="../Functions/match.htm" onclick="onhyperlinkclick(this)">MATCH</a>; <a href="../Functions/offset.htm" onclick="onhyperlinkclick(this)">OFFSET</a>; <a href="../Functions/row.htm" onclick="onhyperlinkclick(this)">ROW</a>; <a href="../Functions/rows.htm" onclick="onhyperlinkclick(this)">ROWS</a>; <a href="../Functions/sort.htm" onclick="onhyperlinkclick(this)">SORT</a>; <a href="../Functions/sortby.htm" onclick="onhyperlinkclick(this)">SORTBY</a>; <a href="../Functions/take.htm" onclick="onhyperlinkclick(this)">TAKE</a>; <a href="../Functions/tocol.htm" onclick="onhyperlinkclick(this)">TOCOL</a>; <a href="../Functions/torow.htm" onclick="onhyperlinkclick(this)">TOROW</a>; <a href="../Functions/transpose.htm" onclick="onhyperlinkclick(this)">TRANSPOSE</a>; <a href="../Functions/unique.htm" onclick="onhyperlinkclick(this)">UNIQUE</a>; <a href="../Functions/vlookup.htm" onclick="onhyperlinkclick(this)">VLOOKUP</a>; <a href="../Functions/vstack.htm" onclick="onhyperlinkclick(this)">VSTACK</a>; <a href="../Functions/wrapcols.htm" onclick="onhyperlinkclick(this)">WRAPCOLS</a>; <a href="../Functions/wraprows.htm" onclick="onhyperlinkclick(this)">WRAPROWS</a>; <a href="../Functions/xlookup.htm" onclick="onhyperlinkclick(this)">XLOOKUP</a>; <a href="../Functions/xmatch.htm" onclick="onhyperlinkclick(this)">XMATCH</a></td>
</tr>
<tr>
<td>Information Functions</td>