How to define the bootgrid with sort and search directions options or how can I build it with all columns that would be markable as sorted?

When I try:

$("#grid").bootgrid({ ajax: true, url: 'some/path'}).bootgrid("search", "serach phrase");

I get two request and one of them will be aborted with http status ‘canceled’ and it’s not good behavior.
It would by great to call bootgrid like:

$("#grid").bootgrid({ ajax: true, url: 'some/path', sort: { nameColumn: 'asc' } })

Or some other way, that just create table with sortable icons.
Any ideas how can I do it?