Permalink
Browse files

Updated SuperSort for Craft 3.

- Add standard gitignore

- Add editor config and PHP MD/CS rules

- Add composer file

- Add Craft as requirement of composer (make development in PHPStorm easier for one thing)

- Add initial base plugin class

- Update info in composer.json

- Move the plugin icon into the correct place for Craft 3

- Add new changelog format

- Remove old releases.json format

- Update composer.json

- Update Twig extension to work with Craft 3

- Remove old plugin file

- Update readme

- Update methods and objects for Craft 3
  • Loading branch information...
tjdraper authored and michaelrog committed Sep 18, 2017
1 parent 7a4937e commit 0f8375f35f1e561aa56533c9c968c1df85f327b1
@@ -0,0 +1,14 @@
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
trim_trailing_whitespace = false
[*.yml]
indent_style = space
indent_size = 2
@@ -0,0 +1,71 @@
#------------------------------------
# Project
#------------------------------------
# Project custom ignores
#------------------------------------
# Tools
#------------------------------------
.env
configLocal.json
localStorage/*
!localStorage/dbBackups
localStorage/dbBackups/*
bower_components/
node_modules/
out/
.bundle
.idea/
.komodotools
.project
.settings/
.tern-project
.tmproj
*.esproj
*.komodoproject
*.sublime-*
browserstack.js
codekit-config.json
mixture.json
prepros.json
#------------------------------------
# System
#------------------------------------
.cache
.DS_Store
.tmp
*.diff
*.err
*.log
*.orig
*.rej
*.swo
*.swp
*.vi
error_log
Thumbs.db
Homestead.yaml
vendor/*
*.vagrant
#------------------------------------
# Gitkeep
#------------------------------------
!.gitkeep
@@ -0,0 +1,17 @@
# SuperSort Changelog
## Unreleased
### New
- Refactored for Craft 3 support
## 1.1.0 - 2015-11-05
### Added
- Added the `shuffle` method.
## 1.0.0 - 2015-11-05
### Fixed
- Fixed a bug where the `rsortas` method was erroneously set to sort the source array rather than the transformed `asArray`, causing incorrect results.
## 0.0.1 - 2015-01-24
- Beta release
@@ -16,6 +16,12 @@ Using **SuperSort**'s "sort as" methods, you can sort an array of elements by an
## Usage
### Installation
`composer require topshelfcraft/supersort`
### General usage
Use the `supersort` filter to sort an array of objects.
(You can apply `supersort` to any array or *ElementCriteriaModel*. A non-array-like source will be converted into an empty array... which probably isn't very useful for sorting.)
@@ -75,7 +81,7 @@ If you don't supply this third parameter, the default (`SORT_REGULAR`) flag is u
### What are the system requirements?
Craft 2.5+ and PHP 5.4+
Craft 3.0+ and PHP 7.0+
### I found a bug.
@@ -0,0 +1,55 @@
{
"name": "topshelfcraft/supersort",
"description": "A super-duper sorting filter for your CraftCMS templates",
"type": "craft-plugin",
"version": "2.0.0",
"support": {
"docs": "https://github.com/TopShelfCraft/SuperSort"
},
"keywords": [
"craft",
"cms",
"craftcms",
"craft-plugin",
"SuperSort"
],
"authors": [
{
"name": "Michael Rog",
"homepage": "https://michaelrog.com"
},
{
"name": "TJ Draper",
"homepage": "https://buzzingpixel.com"
}
],
"repositories": [
{
"type": "composer",
"url": "https://asset-packagist.org"
}
],
"require": {
"php": ">=7.0.0",
"craftcms/cms": "^3.0.0-beta.28",
"vlucas/phpdotenv": "^2.4.0",
"roave/security-advisories": "dev-master"
},
"autoload": {
"psr-4": {
"topshelfcraft\\supersort\\": "src/"
}
},
"extra": {
"name": "SuperSort",
"handle": "supersort",
"developer": "Top Shelf Craft",
"developerUrl": "https://topshelfcraft.com",
"schemaVersion": "0.0.0.0",
"hasCpSettings": false,
"hasCpSection": false,
"class": "topshelfcraft\\supersort\\SuperSort",
"changelogUrl": "https://github.com/TopShelfCraft/SuperSort/raw/master/CHANGELOG.md",
"downloadUrl": "https://github.com/TopShelfCraft/SuperSort/releases"
}
}
Oops, something went wrong.

0 comments on commit 0f8375f

Please sign in to comment.