php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #16935 date sorting
Submitted: 2002-04-30 16:11 UTC Modified: 2002-04-30 16:13 UTC
From: developer at i-space dot org Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.2.0 OS: Slackware 8
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: developer at i-space dot org
New email:
PHP Version: OS:

 

 [2002-04-30 16:11 UTC] developer at i-space dot org
the sorting functions worked fine for me until two days ago, when i was doing a date sorting of interviews in the site i recently do. so my request :) is (and something that i think is VERY usefull) is date sorting. for example - if i have dates like that - "Feb '02", "Mar '01" and so on - i want to sort them by asc and desc. date() has such "short" date creaton - Feb, Mar, etc... - which is just one side of the medalion :). adding date sorting in "short" dates is the other ... :)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-30 16:13 UTC] mfischer@php.net
That's the wrong approach for sorting dates. Keep a unix timestamp of the date and sort after it.
 [2002-04-30 18:04 UTC] developer at i-space dot org
i use timestamp everywhere i can. but the user (in that case - the client) wants to enter in that format - Mar '02 ...
anyway i will figure it out somehow ... :)
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Feb 10 05:00:02 2026 UTC