func SortFramesByDate(frames []Frame) {
	sort.Slice(frames, func(i, j int) bool {
		return frames[i].UpdatedAt.Before(frames[j].StartedAt)
	})
}
SortFramesByDate sorts frame by its start date
package chronolib
import (
	"errors"
	"github.com/jinzhu/now"
	"sort"
	"time"
)
type SimpleFrame struct {
	Project   string
	StartedAt string
	EndedAt   string
	Tags      []string
	Notes     []string
}
type Data struct {
	Frames []Frame
}
func GetFrameByShortHex(frames []Frame, hex string) (int, Frame, error) {
	for idx, frame := range frames {
		if GetShortHex(frame.UUID) == hex {
			return idx, frame, nil
		}
	}
	return 0, Frame{}, errors.New("No frame found")
}