eve-seat/seat — pull request #156 by LunarchildEU (2014-07-17 10:40:12+00:00)
Title: Fix datatable sort

I found some strange Table sorting issue in a few tabs of the Character View page.

Everything on which one can sort the tables is working fine, except for the Date columns which is sorting things wrong.

I found this behavior in Wallet Jornal + Transactions, Mails, Notifications, Market Orders (there in the "Expires" Column), both for Characters and Corporations.

For testing i changed line 43 of [app/views/character/walletjournal/view.blade.php](https://github.com/eve-seat/seat/blob/dev/app/views/character/walletjournal/view.blade.php#L43)
from `Carbon\Carbon::parse($e->date)->diffForHumans()` to `$e->date` and the sorter of DataTable script is working.

After reading documentation of the DataTables script at http://datatables.net/manual/orthogonal-data it can work without changing the columns output format if there is an easier sort-able attribute like `sort-order` as alternate data on the cell for the DataTables script.

Additonal note: While adding this tag, I have seen and fixed a few `span`/`spanp`-Tag typos inside a few views.

**TL;DR: Some Screenshots:**

Before | After
------ | -----
![image](https://cloud.githubusercontent.com/assets/2454083/3609032/585770ae-0d70-11e4-99c5-eec59fab57d5.png) | ![image](https://cloud.githubusercontent.com/assets/2454083/3611606/6bba4c70-0d9d-11e4-9a40-9fe97c0a2f2d.png)