Menu

Reverse sort of records

Help
Java Cafe
2009-11-07
2013-06-03
  • Java Cafe

    Java Cafe - 2009-11-07

    Hi,

    I am using v. 2.  In the listing of the entries from the data.dat file, I would like the most recent entries to be at the top instead of the bottom.

    How can I accomplish this?

    My thought is, I need to do something to the following code block in the file *index.php* in the *admin* folder:

        $i=0;
            while (!feof($filedb)) {
              $temp = fgets($filedb,4096);
              if ($temp != "") {
                $records=$temp;
                $i++;
              }
            }

    But, I am not sure how exactly I should change it.  Can anyone please help?

    Thanks,

    ~ JC ~

     
  • TNTEverett

    TNTEverett - 2009-11-07

    Send me non-SourceForge contact infomation via my SourceForge email. 

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.