generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: sorting through things in numerical order

Previous Thread :: Next Thread 
ArmaVictorem is online. ArmaVictorem
Joined: 18 Mar 2015
Total Posts: 1332
31 Aug 2016 09:34 PM
how would I do that?
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
31 Aug 2016 09:35 PM
table.sort


Report Abuse
GuiltyKing is online. GuiltyKing
Joined: 21 Apr 2014
Total Posts: 82
31 Aug 2016 09:35 PM
table.sort


Report Abuse
ArmaVictorem is online. ArmaVictorem
Joined: 18 Mar 2015
Total Posts: 1332
31 Aug 2016 09:37 PM
what if I want to sort through objects
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
31 Aug 2016 09:38 PM
put them in a table


Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
31 Aug 2016 11:08 PM
Since i cannot use the LessThan sign on roblox, go to this link:

http://
paste
bin.
com/
F8JY
h6MX
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
31 Aug 2016 11:10 PM
if you want to sort objects named 1-whatever you can either just use tonumber(val1.Name) and tonumber(val2.Name) ## ################################ --string pattern for first match that contains digits tonumber(val2.Name:match("%d+"))
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
31 Aug 2016 11:10 PM
if you want to sort objects named 1-whatever

you can either just use tonumber(val1.Name)
and also tonumber(val2.Name)

or you can do

tonumber(val1.Name:match("%d+")) --string pattern for first match that contains digits
tonumber(val2.Name:match("%d+"))

**
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
31 Aug 2016 11:11 PM
table.sort is automatically in alphabetical and case order
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image