anychart.onDocumentReady(function () {
var dataSet = anychart.data.set([
var view = dataSet.mapAs();
var sortedView = view.sort('value', function(value1, value2) {
var chart = anychart.line(sortedView);
chart.title('Sorts the data');
chart.container('container');