sort_alignment: function sorting alignment data according to token index
Description
function sorting alignment data according to token index
Usage
sort_alignment(x, ti1 = NULL, ti2 = NULL, first = TRUE)
Arguments
x
data.frame to be sorted
ti1
either NULL (default): first column of x is used as first token
index for sorting; a character vector specifying the column to be used
as first token index; or a numeric vector of length nrow(x) to be use
as first token index
ti2
either NULL (default): second column of x is used as second token
index for sorting; a character vector specifying the column to be used
as second token index; or a numeric vector of length nrow(x) to be use
as second token index
first
should first text or second text be given priority