Sorting indexes order returned by feature selection
and writing XPL file for learned window.

Signed-off-by: Renato Stoffalette Joao <renatosjoao@gmail.com>