szabototo89 / CodeSharper

Refactoring tool, written in C# and using TDD for developing
2 stars 0 forks source link

[core] Implement OrderBy runnable #45

Open szabototo89 opened 9 years ago

szabototo89 commented 9 years ago

OrderBy (@order-by) runnable would be responsible to order any type of collection.

@order [by=selector] [ascending/descending]

Example CSV:

name,age
John,15
Jane,13
Doe,10
// call order-by runnable on rows: it orders rows by second field
row | @skip 1 | @order by=(field:nth(2)) "ascending"
name, age
Doe,10
Jane,13,
John,15