I am aware there are many posts about this problem, but many are just workarounds for Finder. However I use console more often then Finder because of programming.
I am also aware of something like this (after getting coreutils):
alias ll='gls -la -h --group-directories-first'
But thats just another 'plugin' or external utility, which does the job well but doesn't answer my question.
I also found out that Dropbox web also sorts your files according to the User Agent. If it is changed from the Develop menu in Safari to IE or Firefox/Chrome (Widows) then it sorts folders first.
I get that OS X and Windows must be rebels so they use different sorting but frankly it's a mess when you got plenty files and they all get mixed up.
Does OS X have a system wide setting for this so when I type
ls -la output is sorted folders first then files and both are alphabetically ascending (a to z)? Or is the sorting mechanism related to the implementation of program/application which is displaying files?