I made a simple function for now (before your post John Anderton
)
code:
// Move substring to end of string
function moveToEnd(string, substring) {
var moveToEndI = 0;
while(string.indexOf(substring) > -1) {
string = string.replace(substring, "");
moveToEndI++;
}
for (;moveToEndI > 0; moveToEndI--)
string = string + "" + substring;
return string;
}