Sort values within a line by x_var.
1. Bugs in figure representation corrected including:
 - Call to gnuplot program.
 - script_dir argument.
 - fig and script_dir names.
 - Terminal declaration specified in constructor.
ds_id is the value of ds_config (issue correction). StatsManager also prints one single line per dataset even if it has been uploaded to several computers.