Can't manage to sort a file and display time & date on a LCD screen.

Can't happen.

Bullshit.

I use an Ethernet shield for the SD card

Which means that you MUST set pin 10 as OUTPUT and you can not use it for anything else.

You need to get the switch off of pin 4, too.