Comments (3)
Just add this function:
In index.php
Add this sort function
function sortLogFile(&$i1, &$i2){
if (!is_array($i1) || !is_array($i2))
return 0;
return strcmp($i1['display'], $i2['display']);
}
and l132 just before the foreach:
uasort($files, 'sortLogFile');
from pimpmylog.
Hi !
Thanx for contributing!
The main difficulty here is not in sorting but in the user interface as usual ! I will get your code next week, add a user interface and release a new version.
from pimpmylog.
Released in version 1.2
from pimpmylog.
Related Issues (20)
- Message "Log file has been rotated" false
- composer.lock should be in repository
- phpunit/phpunit should be in require-dev section in composer.json
- session_start(): Cannot send session cache limiter - headers already sent HOT 1
- Chrome - browser notifications HOT 2
- Unable to parse long form date strings including microseconds
- option to turn off refresh entirely
- Infinite refreshing
- Array are not shown
- filter logs for a datetime period HOT 1
- Feature request - Ability to work with compressed files
- PimpMyLog alternatives? HOT 21
- Session already started
- can't parse ANY log file HOT 1
- crash when pipe (|) is present in the regex (it is escaped) HOT 1
- Regex for Nginx Access Log - amplify-nginx HOT 2
- Function get_magic_quotes_gpc() is deprecated
- Add a security policy
- typo in documentation
- Support forum unmaintained or broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pimpmylog.