Please note that the code is Jscript NOT VBscript.
Code: Select all
// Action: CIsort (Case Insensitive sort)
// Author: Bill King
// Date: 05-07-16
// Code: Jscript
//
// This is a case insensitive sort.
// It is a modification of Vince' original post on 7/22/11
// The use of sort(function) was devised by Ivan Krechetov at the StackOverflow site.
//
Clipboard.value = Clipboard.value
.split("\r\n")
.sort(function (a, b) {
return a.toLowerCase().localeCompare(b.toLowerCase())
})
.join("\r\n");