// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Sort one numbered asset family naturally // Not compiled or tested in-world // Setup: Edit the sample inputs, then touch as owner. // Stop / restore: Remove or disable. All transformations are previews in owner chat. // Notes: Every name must be PREFIX followed by 1-6 digits. Does not sort arbitrary mixed filenames or rename assets. // License: see LICENSE in this distribution. // Original Incoprea example. MIT. string PREFIX="Panel-"; list NAMES=["Panel-10","Panel-2","Panel-1","Panel-12"]; default { touch_start(integer touches) { if(llDetectedKey(0)!=llGetOwner())return; list keyed=[]; integer i; for(i=0;i6) { llOwnerSay("Invalid numeric suffix."); return; } integer j; for(j=0;j