www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > JavaScript

    JavaScript JavaScript (not Java) Discussion and technical support, including AJAX and frameworks (JQuery, MooTools, Prototype...)

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 06-02-2007, 05:48 PM
    bayernschweiz bayernschweiz is offline
    Registered User
     
    Join Date: Jun 2007
    Posts: 2
    Lightbulb Order variables by their value > Need help here!

    im coding a page that calculates how many 'awards' you can get in an online game

    i have done all the parts that calculate how many days left to get the awards and for all of them but one thing remains and that is ordering them by how many times you should do that thing to get the next award.

    for example if u click on 'Calculate' button by default at top u will see "1000 more fts to get Sneak Award! " and then under that is "500 more computer points to get Ub3rn00b techie Award! "

    or by numbers only its ordered like this at the moment:

    1000
    500
    1000
    250
    300
    200
    50
    100
    250
    5

    what i want is ordering them by the number at the beginning, this is the right format for default values :

    5
    50
    100
    200
    250
    250
    300
    500
    1000
    1000


    Tool.htm file is included in the zip file.


    hope you understood my question, any help would be appreciated.
    Thanks in advance
    Attached Files
    File Type: zip Tool.zip (8.5 KB, 37 views)
    Reply With Quote
      #2  
    Old 06-02-2007, 11:33 PM
    mrhoo mrhoo is offline
    Registered User
     
    Join Date: Feb 2006
    Posts: 2,561
    I'm a little skeptical of a 'techie' award bestowed by someone who doesn't know how to sort an array of integers....
    Reply With Quote
      #3  
    Old 06-03-2007, 11:16 AM
    bayernschweiz bayernschweiz is offline
    Registered User
     
    Join Date: Jun 2007
    Posts: 2
    Thumbs up

    Haha, no its not a ceremony award or like that.
    got me all wrong, its about the so called awards you get in a game when you reach a certain amount of stats. and by the way I already found out what to do to fix it through another forum. Appreciate your help though
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 03:14 PM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.