Tuesday, February 28, 2017

sort a sorted list

function sortasortedlist(listname) {
document.getElementById("sns_thislist").innerHTML = getthislist(listname)
loadfirstrecord()}

function loadfirstrecord() {
loadarecordfromthelist(0)}

function loadarecordfromthelist(therecordnumber) {
var thelist = document.getElementById("sns_thislist")
var thelistarray = thelist.innerHTML.split(";")
var thisrecord = thelistarray[therecordnumber]
var thisrecordarray = thisrecord.split(",")
var firstrecord = thisrecordarray[0]
var thesymbol = firstrecord.split("/")[firstrecord.split("/").length - 1].split("c"

http://stackoverflow.com/questions/1027224/how-can-i-test-if-a-letter-in-a-string-is-uppercase-or-lowercase-using-javascrip





function thesymbol(therecord) {
var therecordparts = therecord.split("/")
var thelastrecordpart = therecordparts[threcordparts.length - 1]
var thepositionofthelettertocheck = 0
var theletter = thelastrecordpart[thepositionofthelettertocheck]
var thesymbol = ""
while (iscapq(theletter) === "yes") {
thesymbol = thesymbol + theletter
thepositionofthelettertocheck = thepositionofthelettertocheck + 1
theletter = thelastrecordpart[thepositionofthelettertocheck]}
return thesymbol}

No comments:

Post a Comment