Also adjust merge() function - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
 (HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) changeset 093eca8807658c5bf92633900fec57d1ae5b7088
 (DIR) parent 07743a30c060a43e3fa9a3959ed163df5d2f8237
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Mon, 17 Dec 2018 18:11:04 
       
       Also adjust merge() function
       
       Diffstat:
        wip/tscrape-git/patch-tscrape_update.patch |  5 +++--
        1 files changed, 3 insertions(+), 2 deletions(-)
       ---
       diff -r 07743a30c060 -r 093eca880765 wip/tscrape-git/patch-tscrape_update.patch
       --- a/wip/tscrape-git/patch-tscrape_update.patch        Sat Dec 15 23:34:47 2018 +0100
       +++ b/wip/tscrape-git/patch-tscrape_update.patch        Mon Dec 17 18:11:04 2018 +0100
       @@ -41,13 +41,14 @@
         }
         
        -# merge raw files.
       +-# merge(oldfile, newfile)
        +# merge raw files: unique sort by id, retweetid.
       - # merge(oldfile, newfile)
       ++# merge(name, oldfile, newfile)
         merge() {
        -      # unique sort by id, retweetid.
        -      # order by timestamp (desc).
        -      (sort -t '      ' -u -k5,5 -k8,8 "$1" "$2" 2>/dev/null) |
       -+      sort -t '       ' -u -k5,5 -k8,8 "$1" "$2" 2>/dev/null
       ++      sort -t '       ' -u -k5,5 -k8,8 "$2" "$3" 2>/dev/null
        +}
        +
        +# filter fields.