1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-11-29 11:24:10 +01:00
DataTables/examples/ajax/data/arrays_subobjects.txt
Allan Jardine afdf67075d New: language.decimal option. This option can be used to tell
DataTables which character is used as a decimal place in the table's
data, so that number which are formatted using characters other than a
dot as the decimal place can be correctly detected and sorted.

- A large part of the world uses the comma as a decimal place, so it
  makes sense to have this option built-in directly to DataTables,
  rather than needing to use plu-in sorting types as before:
  http://en.wikipedia.org/wiki/Decimal_mark

- However, the decimal place character cannot be detected automatically
  since there are far to many ambiguities. As such, a new
  `language.decimal` option is defined which is passed through to the
  type detection functions. The type detection functions can then use
  that character to alter their detection functions to transform numbers
  into the dot formatted equivilent for parsing in Javascript.

- The numeric sorting methods have been bundled together in the function
  `_addNumericSort` which is called when a character is given for the
  decimal mark, adding the sorting functions required specifically for
  that mark. This means that any character at all can be added, while
  keeping the table's sort performance as it was.

- Code size in increased a little for this new feature, but a lot of
  work has been done to keep it to a minimum (while still optimising for
  the most common use case of a dot decimal place), and this is a good
  feature to have in DataTables' core code.

- All required documentation added and updated.

- Special thanks to Tobias Bäthge for suggesting and sponsoring this
  feature.
2014-02-10 17:07:22 +00:00

688 lines
18 KiB
Plaintext

{
"data": [
{
"0": "Tiger Nixon",
"hr": {
"position": "System Architect",
"salary": "$320,800",
"start_date": "2011\/04\/25"
},
"contact": {
"office": "Edinburgh",
"extn": "5421"
}
},
{
"0": "Garrett Winters",
"hr": {
"position": "Accountant",
"salary": "$170,750",
"start_date": "2011\/07\/25"
},
"contact": {
"office": "Tokyo",
"extn": "8422"
}
},
{
"0": "Ashton Cox",
"hr": {
"position": "Junior Technical Author",
"salary": "$86,000",
"start_date": "2009\/01\/12"
},
"contact": {
"office": "San Francisco",
"extn": "1562"
}
},
{
"0": "Cedric Kelly",
"hr": {
"position": "Senior Javascript Developer",
"salary": "$433,060",
"start_date": "2012\/03\/29"
},
"contact": {
"office": "Edinburgh",
"extn": "6224"
}
},
{
"0": "Airi Satou",
"hr": {
"position": "Accountant",
"salary": "$162,700",
"start_date": "2008\/11\/28"
},
"contact": {
"office": "Tokyo",
"extn": "5407"
}
},
{
"0": "Brielle Williamson",
"hr": {
"position": "Integration Specialist",
"salary": "$372,000",
"start_date": "2012\/12\/02"
},
"contact": {
"office": "New York",
"extn": "4804"
}
},
{
"0": "Herrod Chandler",
"hr": {
"position": "Sales Assistant",
"salary": "$137,500",
"start_date": "2012\/08\/06"
},
"contact": {
"office": "San Francisco",
"extn": "9608"
}
},
{
"0": "Rhona Davidson",
"hr": {
"position": "Integration Specialist",
"salary": "$327,900",
"start_date": "2010\/10\/14"
},
"contact": {
"office": "Tokyo",
"extn": "6200"
}
},
{
"0": "Colleen Hurst",
"hr": {
"position": "Javascript Developer",
"salary": "$205,500",
"start_date": "2009\/09\/15"
},
"contact": {
"office": "San Francisco",
"extn": "2360"
}
},
{
"0": "Sonya Frost",
"hr": {
"position": "Software Engineer",
"salary": "$103,600",
"start_date": "2008\/12\/13"
},
"contact": {
"office": "Edinburgh",
"extn": "1667"
}
},
{
"0": "Jena Gaines",
"hr": {
"position": "Office Manager",
"salary": "$90,560",
"start_date": "2008\/12\/19"
},
"contact": {
"office": "London",
"extn": "3814"
}
},
{
"0": "Quinn Flynn",
"hr": {
"position": "Support Lead",
"salary": "$342,000",
"start_date": "2013\/03\/03"
},
"contact": {
"office": "Edinburgh",
"extn": "9497"
}
},
{
"0": "Charde Marshall",
"hr": {
"position": "Regional Director",
"salary": "$470,600",
"start_date": "2008\/10\/16"
},
"contact": {
"office": "San Francisco",
"extn": "6741"
}
},
{
"0": "Haley Kennedy",
"hr": {
"position": "Senior Marketing Designer",
"salary": "$313,500",
"start_date": "2012\/12\/18"
},
"contact": {
"office": "London",
"extn": "3597"
}
},
{
"0": "Tatyana Fitzpatrick",
"hr": {
"position": "Regional Director",
"salary": "$385,750",
"start_date": "2010\/03\/17"
},
"contact": {
"office": "London",
"extn": "1965"
}
},
{
"0": "Michael Silva",
"hr": {
"position": "Marketing Designer",
"salary": "$198,500",
"start_date": "2012\/11\/27"
},
"contact": {
"office": "London",
"extn": "1581"
}
},
{
"0": "Paul Byrd",
"hr": {
"position": "Chief Financial Officer (CFO)",
"salary": "$725,000",
"start_date": "2010\/06\/09"
},
"contact": {
"office": "New York",
"extn": "3059"
}
},
{
"0": "Gloria Little",
"hr": {
"position": "Systems Administrator",
"salary": "$237,500",
"start_date": "2009\/04\/10"
},
"contact": {
"office": "New York",
"extn": "1721"
}
},
{
"0": "Bradley Greer",
"hr": {
"position": "Software Engineer",
"salary": "$132,000",
"start_date": "2012\/10\/13"
},
"contact": {
"office": "London",
"extn": "2558"
}
},
{
"0": "Dai Rios",
"hr": {
"position": "Personnel Lead",
"salary": "$217,500",
"start_date": "2012\/09\/26"
},
"contact": {
"office": "Edinburgh",
"extn": "2290"
}
},
{
"0": "Jenette Caldwell",
"hr": {
"position": "Development Lead",
"salary": "$345,000",
"start_date": "2011\/09\/03"
},
"contact": {
"office": "New York",
"extn": "1937"
}
},
{
"0": "Yuri Berry",
"hr": {
"position": "Chief Marketing Officer (CMO)",
"salary": "$675,000",
"start_date": "2009\/06\/25"
},
"contact": {
"office": "New York",
"extn": "6154"
}
},
{
"0": "Caesar Vance",
"hr": {
"position": "Pre-Sales Support",
"salary": "$106,450",
"start_date": "2011\/12\/12"
},
"contact": {
"office": "New York",
"extn": "8330"
}
},
{
"0": "Doris Wilder",
"hr": {
"position": "Sales Assistant",
"salary": "$85,600",
"start_date": "2010\/09\/20"
},
"contact": {
"office": "Sidney",
"extn": "3023"
}
},
{
"0": "Angelica Ramos",
"hr": {
"position": "Chief Executive Officer (CEO)",
"salary": "$1,200,000",
"start_date": "2009\/10\/09"
},
"contact": {
"office": "London",
"extn": "5797"
}
},
{
"0": "Gavin Joyce",
"hr": {
"position": "Developer",
"salary": "$92,575",
"start_date": "2010\/12\/22"
},
"contact": {
"office": "Edinburgh",
"extn": "8822"
}
},
{
"0": "Jennifer Chang",
"hr": {
"position": "Regional Director",
"salary": "$357,650",
"start_date": "2010\/11\/14"
},
"contact": {
"office": "Singapore",
"extn": "9239"
}
},
{
"0": "Brenden Wagner",
"hr": {
"position": "Software Engineer",
"salary": "$206,850",
"start_date": "2011\/06\/07"
},
"contact": {
"office": "San Francisco",
"extn": "1314"
}
},
{
"0": "Fiona Green",
"hr": {
"position": "Chief Operating Officer (COO)",
"salary": "$850,000",
"start_date": "2010\/03\/11"
},
"contact": {
"office": "San Francisco",
"extn": "2947"
}
},
{
"0": "Shou Itou",
"hr": {
"position": "Regional Marketing",
"salary": "$163,000",
"start_date": "2011\/08\/14"
},
"contact": {
"office": "Tokyo",
"extn": "8899"
}
},
{
"0": "Michelle House",
"hr": {
"position": "Integration Specialist",
"salary": "$95,400",
"start_date": "2011\/06\/02"
},
"contact": {
"office": "Sidney",
"extn": "2769"
}
},
{
"0": "Suki Burks",
"hr": {
"position": "Developer",
"salary": "$114,500",
"start_date": "2009\/10\/22"
},
"contact": {
"office": "London",
"extn": "6832"
}
},
{
"0": "Prescott Bartlett",
"hr": {
"position": "Technical Author",
"salary": "$145,000",
"start_date": "2011\/05\/07"
},
"contact": {
"office": "London",
"extn": "3606"
}
},
{
"0": "Gavin Cortez",
"hr": {
"position": "Team Leader",
"salary": "$235,500",
"start_date": "2008\/10\/26"
},
"contact": {
"office": "San Francisco",
"extn": "2860"
}
},
{
"0": "Martena Mccray",
"hr": {
"position": "Post-Sales support",
"salary": "$324,050",
"start_date": "2011\/03\/09"
},
"contact": {
"office": "Edinburgh",
"extn": "8240"
}
},
{
"0": "Unity Butler",
"hr": {
"position": "Marketing Designer",
"salary": "$85,675",
"start_date": "2009\/12\/09"
},
"contact": {
"office": "San Francisco",
"extn": "5384"
}
},
{
"0": "Howard Hatfield",
"hr": {
"position": "Office Manager",
"salary": "$164,500",
"start_date": "2008\/12\/16"
},
"contact": {
"office": "San Francisco",
"extn": "7031"
}
},
{
"0": "Hope Fuentes",
"hr": {
"position": "Secretary",
"salary": "$109,850",
"start_date": "2010\/02\/12"
},
"contact": {
"office": "San Francisco",
"extn": "6318"
}
},
{
"0": "Vivian Harrell",
"hr": {
"position": "Financial Controller",
"salary": "$452,500",
"start_date": "2009\/02\/14"
},
"contact": {
"office": "San Francisco",
"extn": "9422"
}
},
{
"0": "Timothy Mooney",
"hr": {
"position": "Office Manager",
"salary": "$136,200",
"start_date": "2008\/12\/11"
},
"contact": {
"office": "London",
"extn": "7580"
}
},
{
"0": "Jackson Bradshaw",
"hr": {
"position": "Director",
"salary": "$645,750",
"start_date": "2008\/09\/26"
},
"contact": {
"office": "New York",
"extn": "1042"
}
},
{
"0": "Olivia Liang",
"hr": {
"position": "Support Engineer",
"salary": "$234,500",
"start_date": "2011\/02\/03"
},
"contact": {
"office": "Singapore",
"extn": "2120"
}
},
{
"0": "Bruno Nash",
"hr": {
"position": "Software Engineer",
"salary": "$163,500",
"start_date": "2011\/05\/03"
},
"contact": {
"office": "London",
"extn": "6222"
}
},
{
"0": "Sakura Yamamoto",
"hr": {
"position": "Support Engineer",
"salary": "$139,575",
"start_date": "2009\/08\/19"
},
"contact": {
"office": "Tokyo",
"extn": "9383"
}
},
{
"0": "Thor Walton",
"hr": {
"position": "Developer",
"salary": "$98,540",
"start_date": "2013\/08\/11"
},
"contact": {
"office": "New York",
"extn": "8327"
}
},
{
"0": "Finn Camacho",
"hr": {
"position": "Support Engineer",
"salary": "$87,500",
"start_date": "2009\/07\/07"
},
"contact": {
"office": "San Francisco",
"extn": "2927"
}
},
{
"0": "Serge Baldwin",
"hr": {
"position": "Data Coordinator",
"salary": "$138,575",
"start_date": "2012\/04\/09"
},
"contact": {
"office": "Singapore",
"extn": "8352"
}
},
{
"0": "Zenaida Frank",
"hr": {
"position": "Software Engineer",
"salary": "$125,250",
"start_date": "2010\/01\/04"
},
"contact": {
"office": "New York",
"extn": "7439"
}
},
{
"0": "Zorita Serrano",
"hr": {
"position": "Software Engineer",
"salary": "$115,000",
"start_date": "2012\/06\/01"
},
"contact": {
"office": "San Francisco",
"extn": "4389"
}
},
{
"0": "Jennifer Acosta",
"hr": {
"position": "Junior Javascript Developer",
"salary": "$75,650",
"start_date": "2013\/02\/01"
},
"contact": {
"office": "Edinburgh",
"extn": "3431"
}
},
{
"0": "Cara Stevens",
"hr": {
"position": "Sales Assistant",
"salary": "$145,600",
"start_date": "2011\/12\/06"
},
"contact": {
"office": "New York",
"extn": "3990"
}
},
{
"0": "Hermione Butler",
"hr": {
"position": "Regional Director",
"salary": "$356,250",
"start_date": "2011\/03\/21"
},
"contact": {
"office": "London",
"extn": "1016"
}
},
{
"0": "Lael Greer",
"hr": {
"position": "Systems Administrator",
"salary": "$103,500",
"start_date": "2009\/02\/27"
},
"contact": {
"office": "London",
"extn": "6733"
}
},
{
"0": "Jonas Alexander",
"hr": {
"position": "Developer",
"salary": "$86,500",
"start_date": "2010\/07\/14"
},
"contact": {
"office": "San Francisco",
"extn": "8196"
}
},
{
"0": "Shad Decker",
"hr": {
"position": "Regional Director",
"salary": "$183,000",
"start_date": "2008\/11\/13"
},
"contact": {
"office": "Edinburgh",
"extn": "6373"
}
},
{
"0": "Michael Bruce",
"hr": {
"position": "Javascript Developer",
"salary": "$183,000",
"start_date": "2011\/06\/27"
},
"contact": {
"office": "Singapore",
"extn": "5384"
}
},
{
"0": "Donna Snider",
"hr": {
"position": "Customer Support",
"salary": "$112,000",
"start_date": "2011\/01\/25"
},
"contact": {
"office": "New York",
"extn": "4226"
}
}
]
}