「昇順で並び替え」の版間の差分

MSY-07 (トーク | 投稿記録)
→ソースコード: 省略された波括弧の追加
MSY-07 (トーク | 投稿記録)
スペースからタブに変更
14行目: 14行目:


if (document.selection.Text == "") {
if (document.selection.Text == "") {
  document.selection.SelectAll();
document.selection.SelectAll();
}
}
document.selection.Text = document.selection.Text.split("\n").sort().join("\n");
document.selection.Text = document.selection.Text.split("\n").sort().join("\n");
document.selection.StartOfDocument();
document.selection.StartOfDocument();
</syntaxhighlight>
</syntaxhighlight>
スポンサーリンク