🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1722

[JS] Sorting an array and removing duplicates

#1722
From: Rick_Quatro
Date: Wed, 28 Jan 2009 02:05
3 lines
789 bytes
I am using a JavaScript array to store a series of page numbers, which I can store as strings or integers. I am looking for an algorithm to numerically sort the array and remove duplicates. Any suggestions would be appreciated.

Rick Quatro
Technical Details
Message-ID: <59b7b48e.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,92931f0add842eac,start
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Rick_Quatro@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: [JS] Sorting an array and removing duplicates
Message-ID: <59b7b48e.-1@webcrossing.la2eafNXanI>
Date: Tue, 27 Jan 2009 18:05:20 -0800
Lines: 6
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit