Skip to content

Commit

Permalink
Sort records
Browse files Browse the repository at this point in the history
  • Loading branch information
CiaranOMara committed Jan 18, 2019
1 parent 4a14903 commit b46db2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/BedgraphFiles.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ function fileio_save(file::BedgraphFileFormat, records::Vector{Bedgraph.Record};

#TODO: bump_forward records.

sort!(records, by=x->[x.chrom, x.first])

header = Bedgraph.generateBasicHeader(records, bump_forward = bump_forward)

return fileio_save(file, header, records)
Expand Down

0 comments on commit b46db2b

Please sign in to comment.